HomePhabricator

[DAG] Fix shift amount limit in SimplifyDemandedBits trunc(shift(x,c)) to…
d9910c24fe19Unpublished

Authored by RKSimon on Feb 13 2021, 3:59 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[DAG] Fix shift amount limit in SimplifyDemandedBits trunc(shift(x,c)) to truncated bitwidth

We lost this in D56387/rG69bc0990a9181e6eb86228276d2f59435a7fae67 - where I got the src/dst bitwidths mixed up and assumed getValidShiftAmountConstant would catch it.

Patch by @craig.topper - confirmed by @Carrot that it fixes PR49162

(cherry picked from commit 7ad0c573bd4a68dc81886037457d47daa3d6aa24)

Details

Committed
tstellarFeb 16 2021, 4:39 PM
Parents
rGd44bf3332b31: [X86] Add reduced test case for PR49162
Branches
Unknown
Tags
Unknown

Event Timeline