]> granicus.if.org Git - llvm/commit
[NFC][InstCombine] conditional sign-extend of high-bit-extract: 'and' pat. can be...
authorRoman Lebedev <lebedev.ri@gmail.com>
Sun, 20 Oct 2019 20:51:37 +0000 (20:51 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sun, 20 Oct 2019 20:51:37 +0000 (20:51 +0000)
commit150b0bedb7f0aa3af89dbd75a3f046b76260c191
treeac4bf80dd1215309a62eff909357959c1b63675f
parentb7aa2ef391f765dccd54d5a28ec4762a03ce090c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375377 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/conditional-variable-length-signext-after-high-bit-extract.ll