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

Kyle Butt via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 1 14:04:35 PST 2016


iteratee created this revision.
iteratee added a reviewer: kbarton.
iteratee added subscribers: echristo, timshen, llvm-commits.
iteratee set the repository for this revision to rL LLVM.

Add Word rotates to the list of instructions that are zero extending.
This allows them to be used in dot form to compare with zero.


Repository:
  rL LLVM

http://reviews.llvm.org/D17781

Files:
  lib/Target/PowerPC/PPCInstrInfo.cpp

Index: lib/Target/PowerPC/PPCInstrInfo.cpp
===================================================================
--- lib/Target/PowerPC/PPCInstrInfo.cpp
+++ lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -1572,7 +1572,8 @@
       // zero-extending.
       if (MIOpC == PPC::CNTLZW || MIOpC == PPC::CNTLZWo ||
           MIOpC == PPC::SLW    || MIOpC == PPC::SLWo ||
-          MIOpC == PPC::SRW    || MIOpC == PPC::SRWo) {
+          MIOpC == PPC::SRW    || MIOpC == PPC::SRWo ||
+          MIOpC == PPC::RLWINM || MIOpC == PPC::RLWNM) {
         noSub = true;
         equalityOnly = true;
       } else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17781.49547.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160301/17cebf84/attachment.bin>


More information about the llvm-commits mailing list