From 17457be1c393ff691cca032b04ea1698fedf0301 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 13 Jun 2022 15:28:29 -0700 Subject: [PATCH] [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. --- llvm/lib/Target/RISCV/RISCVInstrInfo.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.td b/llvm/lib/Target/RISCV/RISCVInstrInfo.td index f6f85ab..022956b 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)>; -- 2.7.4