Skip to content

Commit 1f15e39

Browse files
committed
AMDGPU/GlobalISel: Don't pointlessly check for convergent intrinsics
The set of handled intrinsics for fneg combines aren't convergent. The only case we might want to handle is mov_dpp.
1 parent 8f44edb commit 1f15e39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ static bool fnegFoldsIntoMI(const MachineInstr &MI) {
4242
case AMDGPU::G_AMDGPU_FMIN_LEGACY:
4343
case AMDGPU::G_AMDGPU_FMAX_LEGACY:
4444
return true;
45-
case AMDGPU::G_INTRINSIC:
46-
case AMDGPU::G_INTRINSIC_CONVERGENT: {
45+
case AMDGPU::G_INTRINSIC: {
4746
unsigned IntrinsicID = cast<GIntrinsic>(MI).getIntrinsicID();
4847
switch (IntrinsicID) {
4948
case Intrinsic::amdgcn_rcp:

0 commit comments

Comments
 (0)