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); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits