Fix a PPC rlwimi instruction-selection bug
authorHal Finkel <hfinkel@anl.gov>
Fri, 28 Jun 2013 20:00:07 +0000 (20:00 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 28 Jun 2013 20:00:07 +0000 (20:00 +0000)
commit2c77a625b79908f6e1238890caae630d28c48bee
tree16e3da165c33a00d5de0e7d73f0e35b2b2dafb99
parent3ca4fa7c265b9f42d2c6bad2362c6ba6640d1b92
Fix a PPC rlwimi instruction-selection bug

Under certain (evidently rare) circumstances, this code used to convert OR(a,
AND(x, y)) into OR(a, x). This was incorrect.

While there, I've added a comment to the code immediately above.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185201 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
test/CodeGen/PowerPC/rlwimi-and.ll [new file with mode: 0644]