HomePhabricator

[InstCombine] Deal with -(trunc(X >>u 63)) -> trunc(X >>s 63)

Authored by lebedev.ri on Oct 1 2019, 10:50 AM.

Description

[InstCombine] Deal with -(trunc(X >>u 63)) -> trunc(X >>s 63)

Identical to it's trunc-less variant, just pretent-to hoist
trunc, and everything else still holds:
https://rise4fun.com/Alive/JRU

llvm-svn: 373364

Details

Committed
lebedev.riOct 1 2019, 10:50 AM
Parents
rG65144149d033: [InstCombine] Preserve 'exact' in -(X >>u 31) -> (X >>s 31) fold
Branches
Unknown
Tags
Unknown