aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-12-18 08:13:21 -0500
committerSanjay Patel <spatel@rotateright.com>2022-12-18 08:17:07 -0500
commit86b4a2355e73ff37a785aac7462d8e63e3033079 (patch)
tree420a9cbc98d37c5061207ab4240594d419cbd7a0 /clang/lib/Lex/Preprocessor.cpp
parent3c7d059f453705b95a902eb43df8b5c76859ab27 (diff)
downloadllvm-86b4a2355e73ff37a785aac7462d8e63e3033079.zip
llvm-86b4a2355e73ff37a785aac7462d8e63e3033079.tar.gz
llvm-86b4a2355e73ff37a785aac7462d8e63e3033079.tar.bz2
[InstCombine] fold flooring sdiv by power-of-2 to ashr
It's a bigger match than usual, but I have not found any sub-patterns that reduce: (X / DivC) + sext ((X & (SMin | (DivC - 1)) >u SMin) --> X >>s log2(DivC) https://alive2.llvm.org/ce/z/MJzlhl Fixes issue #55741
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions