[PATCH] D17781: Codegen: [PPC] Word Rotates are Zero Extending

Kit Barton via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 20:56:09 PST 2016


kbarton added inline comments.

================
Comment at: lib/Target/PowerPC/PPCInstrInfo.cpp:1559
@@ +1558,3 @@
+  bool isZeroExtendingRotate  =
+      (MIOpC == PPC::RLWINM || MIOpC == PPC::RLWINM)
+      && MI->getOperand(3).getImm() <= MI->getOperand(4).getImm();
----------------
I think you mean to use MIOpC == PPC::RLWINMo as the second part of the or statement


http://reviews.llvm.org/D17781





More information about the llvm-commits mailing list