aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2020-06-08 11:37:43 -0400
committerSanjay Patel <spatel@rotateright.com>2020-06-08 11:55:30 -0400
commit42f488b63a04fdaa931315bdadecb6d23e20529a (patch)
tree90c6ca15c4f2f1ebecb35f048c7aec1e6bf9042d /llvm/lib/Support/SourceMgr.cpp
parent8b529e311a9052ee7a0676a1b517728efa44a3ba (diff)
downloadllvm-42f488b63a04fdaa931315bdadecb6d23e20529a.zip
llvm-42f488b63a04fdaa931315bdadecb6d23e20529a.tar.gz
llvm-42f488b63a04fdaa931315bdadecb6d23e20529a.tar.bz2
[InstCombine] improve matching for sext-lshr-trunc patterns
This is intended to preserve the logic of the existing transform, but remove unnecessary restrictions on uses and types. https://rise4fun.com/Alive/pYfR Pre: C1 <= width(C1) - 8 %B = sext i8 %A %C = lshr %B, C1 %r = trunc %C to i8 => %r = ashr i8 %A, trunc(umin(C1, 7))
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions