[llvm] 171e7b8 - GlobalISel: Fix the broken release build after c1fc5219cb23d1e14c0115381321f6d8d6a4fc17
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 21 01:10:59 PST 2023
Author: Haojian Wu
Date: 2023-01-21T10:09:17+01:00
New Revision: 171e7b83122734788c6329d8a699877415cc9a48
URL: https://github.com/llvm/llvm-project/commit/171e7b83122734788c6329d8a699877415cc9a48
DIFF: https://github.com/llvm/llvm-project/commit/171e7b83122734788c6329d8a699877415cc9a48.diff
LOG: GlobalISel: Fix the broken release build after c1fc5219cb23d1e14c0115381321f6d8d6a4fc17
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
index bc4fea7dcf23..080f3ca540f2 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
@@ -715,6 +715,7 @@ bool RegBankSelect::assignRegisterBanks(MachineFunction &MF) {
}
bool RegBankSelect::checkFunctionIsLegal(MachineFunction &MF) const {
+#ifndef NDEBUG
if (!DisableGISelLegalityCheck) {
if (const MachineInstr *MI = machineFunctionIsIllegal(MF)) {
reportGISelFailure(MF, *TPC, *MORE, "gisel-regbankselect",
@@ -722,7 +723,7 @@ bool RegBankSelect::checkFunctionIsLegal(MachineFunction &MF) const {
return false;
}
}
-
+#endif
return true;
}
More information about the llvm-commits
mailing list