Files
archived-llvm/lib
Craig Topper 10fbe29b93 [X86] Add an override of targetShrinkDemandedConstant to limit the damage that shrinkdemandedbits can do to zext_in_reg operations
Summary:
This patch adds an implementation of targetShrinkDemandedConstant that tries to keep shrinkdemandedbits from removing bits that would otherwise have been recognized as a movzx.

We still need a follow patch to stop moving ands across srl if the and could be represented as a movzx before the shift but not after. I think this should help with some of the cases that D42088 ended up removing during isel.

Reviewers: spatel, RKSimon

Reviewed By: spatel

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D42265

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323048 91177308-0d34-0410-b5e6-96231b3b80d8
2018-01-20 18:50:09 +00:00
..
2018-01-12 17:03:43 +00:00
2017-10-19 01:32:18 +00:00
2018-01-19 22:56:04 +00:00
2017-10-16 20:48:19 +00:00
2018-01-18 05:38:43 +00:00
2017-10-27 21:12:28 +00:00