aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/SmallVectorTest.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-11-03 13:49:00 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-11-03 14:22:28 +0000
commitcab21d4fa8c335e002df91ee4736fc05593ed23c (patch)
treedfa43c448b1f1bb671a3181331678f4430dad819 /llvm/unittests/ADT/SmallVectorTest.cpp
parenta5bbefe303140bcbda757f439ebd7664cfbeccb9 (diff)
downloadllvm-cab21d4fa8c335e002df91ee4736fc05593ed23c.zip
llvm-cab21d4fa8c335e002df91ee4736fc05593ed23c.tar.gz
llvm-cab21d4fa8c335e002df91ee4736fc05593ed23c.tar.bz2
[DAG] computeKnownBits - Move (most) ISD::SHL handling into KnownBits::shl
As discussed on D90527, we should be be trying to move shift handling functionality into KnownBits to avoid code duplication in SelectionDAG/GlobalISel/ValueTracking. The refactor to use the KnownBits fixed/min/max constant helpers allows us to hit a couple of cases that we were missing before. We still need the getValidMinimumShiftAmountConstant case as KnownBits doesn't handle per-element vector cases.
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions