aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProgramTest.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-10-31 08:54:18 -0400
committerSanjay Patel <spatel@rotateright.com>2022-10-31 09:06:55 -0400
commitbc886e9b587b9d009f49b12eaaa9ebc1c71905a1 (patch)
tree7a5d0b06f3d52947b01acb0c053e8524201e151f /llvm/unittests/Support/ProgramTest.cpp
parent9a96f42a75e8f091ca6ed89cdf2571d3e74ef491 (diff)
downloadllvm-bc886e9b587b9d009f49b12eaaa9ebc1c71905a1.zip
llvm-bc886e9b587b9d009f49b12eaaa9ebc1c71905a1.tar.gz
llvm-bc886e9b587b9d009f49b12eaaa9ebc1c71905a1.tar.bz2
[InstCombine] fold mul with decremented "shl -1" factor
This is a sibling to: 6064e92b0a84 ...but we canonicalize the shl+add to shl+xor, so the pattern is different than I expected: https://alive2.llvm.org/ce/z/8CX16e I have not found any patterns that are safe to propagate no-wrap, so that is not included here.
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
0 files changed, 0 insertions, 0 deletions