aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2024-06-15 21:09:48 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2024-06-15 21:10:00 +0100
commit213e308633e533f74f04269766989bb89fde0921 (patch)
tree09903f11a38d04d0e04e65b5fd1750fa89b48eb9 /llvm/lib/CodeGen/MachineSink.cpp
parent355e4a9e56c644f24fc10f780cb2fc68b660d0a0 (diff)
downloadllvm-213e308633e533f74f04269766989bb89fde0921.zip
llvm-213e308633e533f74f04269766989bb89fde0921.tar.gz
llvm-213e308633e533f74f04269766989bb89fde0921.tar.bz2
[DAG] Fold Y = sra (X, size(X)-1); mul (or (Y, 1), X) -> (abs X)
Similar to InstCombine implementation except we don't have to handle the NSW/is_int_min_poison case.
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions