diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-11-03 13:49:00 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-11-03 14:22:28 +0000 |
commit | cab21d4fa8c335e002df91ee4736fc05593ed23c (patch) | |
tree | dfa43c448b1f1bb671a3181331678f4430dad819 /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | a5bbefe303140bcbda757f439ebd7664cfbeccb9 (diff) | |
download | llvm-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