[PATCH] D35635: [ARM] Optimize {s,u}{add,sub}.with.overflow

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 10:16:22 PST 2017


rogfer01 added inline comments.


================
Comment at: lib/Target/ARM/ARMISelLowering.cpp:4542-4543
+    // Reverse the condition code.
+    ARMCC::CondCodes CondCode =
+        (ARMCC::CondCodes)cast<const ConstantSDNode>(ARMcc)->getZExtValue();
+    CondCode = ARMCC::getOppositeCondition(CondCode);
----------------
Apologies if this question looks a bit clueless about all the transformation, but why you need to reverse the condition code here?


https://reviews.llvm.org/D35635





More information about the llvm-commits mailing list