aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-01-04 09:48:40 -0800
committerGitHub <noreply@github.com>2024-01-04 09:48:40 -0800
commita960703466e937d99ab7a7a29f7448e1bc926e35 (patch)
tree23a9f922a4c9d6cfa875226d278c550f7727170e /clang/lib/CodeGen/CodeGenFunction.cpp
parent4004f655ceb9623608ba0471aa7037c142956e31 (diff)
downloadllvm-a960703466e937d99ab7a7a29f7448e1bc926e35.zip
llvm-a960703466e937d99ab7a7a29f7448e1bc926e35.tar.gz
llvm-a960703466e937d99ab7a7a29f7448e1bc926e35.tar.bz2
[RISCV] Remove incomplete PRE_DEC/POST_DEC code for XTHeadMemIdx. (#76922)
As far as I can tell if getIndexedAddressParts received an ISD::SUB, the constant would be negated. So `IsInc` should be set to true since the SUB was effectively converted to ADD. This means we should never use PRE_DEC/POST_DEC. No tests are affected because DAGCombine aggressively turns SUB with constant into ADD so no lit test has a SUB reach getIndexedAddressParts.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions