[PATCH] D34757: [PowerPC] better instruction selection for OR (XOR) with a 32-bit immediate

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 02:43:07 PDT 2017


nemanjai added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelDAGToDAG.cpp:3356
+    bool IsPPC64 = PPCSubTarget->isPPC64();
+    if (IsPPC64 && isInt64Immediate(N->getOperand(1), Imm64) &&
+        (Imm64 & ~0xFFFFFFFFuLL) == 0) {
----------------
We don't want to do this with `i32` nodes? Or is this already handled correctly due to code elsewhere?


https://reviews.llvm.org/D34757





More information about the llvm-commits mailing list