[llvm] [AMDGPU] Select gfx1150 SALU Float instructions (PR #66885)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 11:32:13 PDT 2023


================
@@ -1211,36 +1211,104 @@ int AMDGPUInstructionSelector::getS_CMPOpcode(CmpInst::Predicate P,
     }
   }
 
-  if (Size != 32)
-    return -1;
+  if (Size == 32) {
----------------
rampitec wrote:

This 'if' is not needed, you have just exited if Size != 32.

https://github.com/llvm/llvm-project/pull/66885


More information about the llvm-commits mailing list