[PATCH] D34545: [AMDGPU] Simplify setcc (sext from i1 b), -1|0, cc

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 17:58:36 PDT 2017


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:5137
+  if (VT == MVT::i32 && LHS.getOpcode() == ISD::SIGN_EXTEND &&
+      isDeserializedBool(LHS.getOperand(0)) && CRHS) {
+    // setcc (sext from i1 cc), -1, ne|sgt|ult) => not cc => xor cc, -1
----------------
CRHS condition first


https://reviews.llvm.org/D34545





More information about the llvm-commits mailing list