[PATCH] D41369: [PowerPC] Fix for PR35688 - handle out-of-range values for r+r to r+i conversion

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 15:12:31 PST 2017


nemanjai created this revision.
nemanjai added reviewers: bkramer, hfinkel, echristo, power-llvm-team.
Herald added a subscriber: kbarton.

Revision 320791 introduced a pass that transforms reg+reg instructions to reg+imm if they're fed by "load immediate". However, it didn't handle out-of-range shifts correctly as reported in PR35688. This patch fixes that and therefore the PR.


Repository:
  rL LLVM

https://reviews.llvm.org/D41369

Files:
  lib/Target/PowerPC/PPCInstrInfo.cpp
  lib/Target/PowerPC/PPCInstrInfo.h
  lib/Target/PowerPC/PPCMIPeephole.cpp
  lib/Target/PowerPC/PPCPreEmitPeephole.cpp
  test/CodeGen/PowerPC/convert-rr-to-ri-instrs-out-of-range.mir
  test/CodeGen/PowerPC/pr35688.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41369.127414.patch
Type: text/x-patch
Size: 46458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171218/1ab7f301/attachment.bin>


More information about the llvm-commits mailing list