diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-12-18 08:13:21 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-12-18 08:17:07 -0500 |
commit | 86b4a2355e73ff37a785aac7462d8e63e3033079 (patch) | |
tree | 420a9cbc98d37c5061207ab4240594d419cbd7a0 /clang/lib/Lex/Preprocessor.cpp | |
parent | 3c7d059f453705b95a902eb43df8b5c76859ab27 (diff) | |
download | llvm-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