HomePhabricator

[NFC][InstCombine] conditional sign-extend of high-bit-extract: 'and' pat. can…

Authored by lebedev.ri on Oct 20 2019, 1:51 PM.

Description

[NFC][InstCombine] conditional sign-extend of high-bit-extract: 'and' pat. can be 'or' pattern.

In this pattern, all the "magic" bits that we'd add are all
high sign bits, and in the value we'd be adding to they are all unset,
not unexpectedly, so we can have an or there:
https://rise4fun.com/Alive/ups

llvm-svn: 375377

Details

Committed
lebedev.riOct 20 2019, 1:51 PM
Parents
rGb01c077a1853: gn build: Merge r375375
Branches
Unknown
Tags
Unknown