Skip to content

Commit fc36e47

Browse files
committed
Revert "[RISCV] Properly support RISCVISD::LLA in getTargetConstantFromLoad. (#145112)"
I missed the Co-authored-by that I tried to add. This reverts commit 1da864b.
1 parent 1da864b commit fc36e47

File tree

2 files changed

+1
-70
lines changed

2 files changed

+1
-70
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21062,7 +21062,7 @@ RISCVTargetLowering::getTargetConstantFromLoad(LoadSDNode *Ld) const {
2106221062

2106321063
// Simple case, LLA.
2106421064
if (Ptr.getOpcode() == RISCVISD::LLA) {
21065-
auto *CNode = GetSupportedConstantPool(Ptr.getOperand(0));
21065+
auto *CNode = GetSupportedConstantPool(Ptr);
2106621066
if (!CNode || CNode->getTargetFlags() != 0)
2106721067
return nullptr;
2106821068

llvm/test/CodeGen/RISCV/constpool-known-bits.ll

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)