[llvm] [RISCV][GlobalISel] Legalize G_FRAME_INDEX (PR #67746)
Nitin John Raj via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 28 14:54:23 PDT 2023
https://github.com/nitinjohnraj created https://github.com/llvm/llvm-project/pull/67746
None
>From a267b29bfceac1ac9b6503e67646c534009ea415 Mon Sep 17 00:00:00 2001
From: Nitin John Raj <nitin.raj at sifive.com>
Date: Tue, 26 Sep 2023 13:16:46 -0700
Subject: [PATCH] [RISCV][GlobalISel] Legalize G_FRAME_INDEX
---
llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
index 1f9b80856bbe134..3a175bacc90834f 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -167,6 +167,8 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
.widenScalarToNextPow2(0);
}
+ getActionDefinitionsBuilder(G_FRAME_INDEX).legalFor({p0});
+
getLegacyLegalizerInfo().computeTables();
}
More information about the llvm-commits
mailing list