[RISCV] Fix use of texternalsym in output pattern where input was tglobaladdr. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 13 Jun 2022 22:28:29 +0000 (15:28 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 13 Jun 2022 22:42:42 +0000 (15:42 -0700)
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

index f6f85ab..022956b 100644 (file)
@@ -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)>;