aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
diff options
context:
space:
mode:
authorFabian Wolff <fabian.wolff@alumni.ethz.ch>2021-11-29 15:32:09 -0800
committerPhilip Reames <listmail@philipreames.com>2021-11-29 15:32:09 -0800
commit45ecfed6c636d06f76bca0a44803e945cdae9506 (patch)
treefa767796b0c6880338bf8c4d3a724e969f4f7031 /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
parent8906a0fe64abf1a9c8641ee51908bba7cbf8ec54 (diff)
downloadllvm-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