This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: Sign extend immediates passed to FastISel entry points instead of zero extending them.
Needs ReviewPublic

Authored by pcc on Oct 5 2016, 6:40 PM.

Details

Reviewers
chandlerc
Summary

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.

Event Timeline

pcc updated this revision to Diff 73719.Oct 5 2016, 6:40 PM
pcc retitled this revision from to CodeGen: Sign extend immediates passed to FastISel entry points instead of zero extending them..
pcc updated this object.
pcc added a reviewer: chandlerc.
pcc added a subscriber: llvm-commits.