diff options
author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-11-29 15:32:09 -0800 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2021-11-29 15:32:09 -0800 |
commit | 45ecfed6c636d06f76bca0a44803e945cdae9506 (patch) | |
tree | fa767796b0c6880338bf8c4d3a724e969f4f7031 /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp | |
parent | 8906a0fe64abf1a9c8641ee51908bba7cbf8ec54 (diff) | |
download | llvm-45ecfed6c636d06f76bca0a44803e945cdae9506.zip llvm-45ecfed6c636d06f76bca0a44803e945cdae9506.tar.gz llvm-45ecfed6c636d06f76bca0a44803e945cdae9506.tar.bz2 |
[CVP] Remove ashr of -1 or 0
Fixes PR#52190. There is already a check for converting ashr instructions with non-negative left-hand sides into lshr; this patch adds an optimization to remove ashr altogether if the left-hand side is known to be in the range [-1, 1).
Differential Revision: https://reviews.llvm.org/D113835
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp')
0 files changed, 0 insertions, 0 deletions