aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-08-05 16:02:57 -0700
committerCraig Topper <craig.topper@sifive.com>2024-08-05 16:02:57 -0700
commitcfd13cbac12b73069c79c89bb37294f77938bb3f (patch)
tree9b5f23c88551179d1dbdde74864a07299e950dc1 /lldb/source/Interpreter/CommandInterpreter.cpp
parent4745bb3e7db6d9cf5588171a433f534e5b488c70 (diff)
downloadllvm-cfd13cbac12b73069c79c89bb37294f77938bb3f.zip
llvm-cfd13cbac12b73069c79c89bb37294f77938bb3f.tar.gz
llvm-cfd13cbac12b73069c79c89bb37294f77938bb3f.tar.bz2
[RISCV] Improve variable scoping in custom isel for ISD::AND.
Give the (and (srl/shl X, C2), C1) handling its owns private `C1` variable it can modify using known zeros. This may be out of sync with N1C->getZExtValue(). Add a separate const C1 for (and (sra X, C2), C1) and (and X, C). This copy will always be in sync with N1C->getZExtValue(). Remove the IsC1Mask and IsC1ANDI variables and compute them at their usage. Use N1C->getSExtValue() when calling isInt. This shouldn't be a functional change since we already checked that it was a mask. In order for it to be a mask and a negative number, it would need to be -1 which should have been removed by DAG combine.
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
0 files changed, 0 insertions, 0 deletions