aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-01-27 20:36:21 -0800
committerCraig Topper <craig.topper@sifive.com>2021-01-27 20:46:10 -0800
commit5d05cdf55cdb3910d152ceb967de13bdd6295f56 (patch)
treeb999ad102c159d525abb7c436f62e3c1f132981a /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
parentb7d63244226ba2c0df651622fe7fe3f5f8aba262 (diff)
downloadllvm-5d05cdf55cdb3910d152ceb967de13bdd6295f56.zip
llvm-5d05cdf55cdb3910d152ceb967de13bdd6295f56.tar.gz
llvm-5d05cdf55cdb3910d152ceb967de13bdd6295f56.tar.bz2
[RISCV] Copy isUnneededShiftMask from X86.
In d2927f786e877410d90c1e6f0e0c7d99524529c5, I added patterns to remove (and X, 31) from sllw/srlw/sraw shift amounts. There is code in SelectionDAGISel.cpp that knows to use computeKnownBits to fill in bits of the mask that were removed by SimplifyDemandedBits based on bits being known zero. The non-W shift patterns use immbottomxlenset which allows the mask to have more than log2(xlen) trailing ones, but doesn't have a call to computeKnownBits to fill in bits of the mask that may have been cleared by SimplifyDemandedBits. This patch copies code from X86 to handle more than log2(xlen) bottom bits set and uses computeKnownBits to fill in missing bits before counting. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D95422
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions