[PATCH] D25301: CodeGen: Sign extend immediates passed to FastISel entry points instead of zero extending them.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 18:40:23 PDT 2016


pcc created this revision.
pcc added a reviewer: chandlerc.
pcc added a subscriber: llvm-commits.
Herald added a subscriber: nemanjai.

The purpose of this change is to ensure that ImmLeaf predicates are evaluated
consistently between SelectionDAG and FastISel. This is necessary for an
upcoming change that will allow ImmLeaf predicates to take a zero extended
immediate.

The test case change is benign; the high bits of the value being loaded into
the register are masked off by a later instruction.


https://reviews.llvm.org/D25301

Files:
  llvm/include/llvm/CodeGen/FastISel.h
  llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
  llvm/lib/Target/PowerPC/PPCFastISel.cpp
  llvm/test/CodeGen/AArch64/arm64-fast-isel-call.ll
  llvm/utils/TableGen/FastISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25301.73719.patch
Type: text/x-patch
Size: 6387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161006/30619cde/attachment.bin>


More information about the llvm-commits mailing list