[llvm-branch-commits] [llvm] be1ad4d - Revert "llvm/lib/CodeGen/TargetSchedule.cpp:132:12: warning: Assert statement…"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat May 4 11:41:29 PDT 2024
Author: David Blaikie
Date: 2024-05-04T11:41:26-07:00
New Revision: be1ad4df38e6136cb1bef7d8b9b53a43451771eb
URL: https://github.com/llvm/llvm-project/commit/be1ad4df38e6136cb1bef7d8b9b53a43451771eb
DIFF: https://github.com/llvm/llvm-project/commit/be1ad4df38e6136cb1bef7d8b9b53a43451771eb.diff
LOG: Revert "llvm/lib/CodeGen/TargetSchedule.cpp:132:12: warning: Assert statement…"
This reverts commit 18d1df4633c3964e12ec46f3fa92e60ab21842fd.
Added:
Modified:
llvm/lib/CodeGen/TargetSchedule.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/TargetSchedule.cpp b/llvm/lib/CodeGen/TargetSchedule.cpp
index b5db2a671f7d04..ce59b096992d8e 100644
--- a/llvm/lib/CodeGen/TargetSchedule.cpp
+++ b/llvm/lib/CodeGen/TargetSchedule.cpp
@@ -129,8 +129,7 @@ resolveSchedClass(const MachineInstr *MI) const {
unsigned NIter = 0;
#endif
while (SCDesc->isVariant()) {
- ++NIter;
- assert(NIter < 6 && "Variants are nested deeper than the magic number");
+ assert(++NIter < 6 && "Variants are nested deeper than the magic number");
SchedClass = STI->resolveSchedClass(SchedClass, MI, this);
SCDesc = SchedModel.getSchedClassDesc(SchedClass);
More information about the llvm-branch-commits
mailing list