diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-04-19 15:09:45 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-04-19 15:21:34 -0400 |
commit | 8a9c70fc01e6c900f060f3c23d96ee444be33a9a (patch) | |
tree | 05eeccdc3d03fe7f6e7032c64b763ae3cc243f4b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a9aa14e0cbb26ada60e28099ba6cafca4e990ba0 (diff) | |
download | llvm-8a9c70fc01e6c900f060f3c23d96ee444be33a9a.zip llvm-8a9c70fc01e6c900f060f3c23d96ee444be33a9a.tar.gz llvm-8a9c70fc01e6c900f060f3c23d96ee444be33a9a.tar.bz2 |
[InstCombine] C0 shift (X add nuw C) --> (C0 shift C) shift X
With 'nuw' we can convert the increment of the shift amount
into a pre-shift (constant fold) of the shifted constant:
https://alive2.llvm.org/ce/z/FkTyR2
Fixes issue #41976
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions