diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-01-04 09:48:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 09:48:40 -0800 |
commit | a960703466e937d99ab7a7a29f7448e1bc926e35 (patch) | |
tree | 23a9f922a4c9d6cfa875226d278c550f7727170e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 4004f655ceb9623608ba0471aa7037c142956e31 (diff) | |
download | llvm-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