[llvm-branch-commits] [llvm] release/18.x: [TableGen] Fix ReplaceRegAction RTTI Kind (PR #89790)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Apr 23 09:23:09 PDT 2024
https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/89790
cherry picked from commit 8a631d789859d09ba3a11a1206c30e595f4b6428
>From f8f2f514681d6619354a4a65d73a51a5774a5152 Mon Sep 17 00:00:00 2001
From: pvanhout <pierre.vanhoutryve at amd.com>
Date: Tue, 23 Apr 2024 12:54:50 +0200
Subject: [PATCH] [TableGen] Fix ReplaceRegAction RTTI Kind
---
llvm/utils/TableGen/GlobalISelMatchTable.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/utils/TableGen/GlobalISelMatchTable.h b/llvm/utils/TableGen/GlobalISelMatchTable.h
index 7cb5345f51f8cb..9192550de8f10e 100644
--- a/llvm/utils/TableGen/GlobalISelMatchTable.h
+++ b/llvm/utils/TableGen/GlobalISelMatchTable.h
@@ -2333,11 +2333,11 @@ class ReplaceRegAction : public MatchAction {
public:
ReplaceRegAction(unsigned OldInsnID, unsigned OldOpIdx, unsigned NewInsnId,
unsigned NewOpIdx)
- : MatchAction(AK_EraseInst), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
+ : MatchAction(AK_ReplaceReg), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
NewInsnId(NewInsnId), NewOpIdx(NewOpIdx) {}
ReplaceRegAction(unsigned OldInsnID, unsigned OldOpIdx, unsigned TempRegID)
- : MatchAction(AK_EraseInst), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
+ : MatchAction(AK_ReplaceReg), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
TempRegID(TempRegID) {}
static bool classof(const MatchAction *A) {
More information about the llvm-branch-commits
mailing list