diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-05-08 20:49:59 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-05-08 20:49:59 +0000 |
commit | a1c88148910f71841b3ab1deafb7d1b285a24a07 (patch) | |
tree | f044bb2ada370ef0bf52ee1876f8dc9151eab01e /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | aa42a100513a040a2e8276287011a36c7e042e7b (diff) | |
download | llvm-a1c88148910f71841b3ab1deafb7d1b285a24a07.zip llvm-a1c88148910f71841b3ab1deafb7d1b285a24a07.tar.gz llvm-a1c88148910f71841b3ab1deafb7d1b285a24a07.tar.bz2 |
[InstCombine] add folds for not-of-shift-right
This is another step towards getting rid of dyn_castNotVal,
so we can recommit:
https://reviews.llvm.org/rL300977
As the tests show, we were missing the lshr case for constants
and both ashr/lshr vector splat folds. The ashr case with constant
was being performed inefficiently in 2 steps. It's also possible
there was a latent bug in that case because we can't do that fold
if the constant is positive:
http://rise4fun.com/Alive/Bge
llvm-svn: 302465
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions