[llvm] 17457be - [RISCV] Fix use of texternalsym in output pattern where input was tglobaladdr. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 15:42:48 PDT 2022
Author: Craig Topper
Date: 2022-06-13T15:42:42-07:00
New Revision: 17457be1c393ff691cca032b04ea1698fedf0301
URL: https://github.com/llvm/llvm-project/commit/17457be1c393ff691cca032b04ea1698fedf0301
DIFF: https://github.com/llvm/llvm-project/commit/17457be1c393ff691cca032b04ea1698fedf0301.diff
LOG: [RISCV] Fix use of texternalsym in output pattern where input was tglobaladdr. NFC
I don't think the name used in the output pattern is used to control
anything about the isel table emission, but it should match the input.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfo.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.td b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
index f6f85ab9a6bdb..022956ba90303 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -1341,7 +1341,7 @@ def PseudoTAILIndirect : Pseudo<(outs), (ins GPRTC:$rs1),
PseudoInstExpansion<(JALR X0, GPR:$rs1, 0)>;
def : Pat<(riscv_tail (iPTR tglobaladdr:$dst)),
- (PseudoTAIL texternalsym:$dst)>;
+ (PseudoTAIL tglobaladdr:$dst)>;
def : Pat<(riscv_tail (iPTR texternalsym:$dst)),
(PseudoTAIL texternalsym:$dst)>;
More information about the llvm-commits
mailing list