[PATCH] D15093: Fix the assert in Annotate the loop in SIAnnotateControlFlow pass when the loop terminator condition is a constant.

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 14:30:29 PST 2015


tstellarAMD added inline comments.

================
Comment at: lib/Target/AMDGPU/SIAnnotateControlFlow.cpp:276-278
@@ +275,5 @@
+  // Insert IfBreak before TERM for constant COND.
+  } else if (isa<ConstantInt>(Cond)) {
+    Value *Args[] = { Cond, Broken };
+    return CallInst::Create(IfBreak, Args, "", Term);
+
----------------
This kind of failure is a common symptom of strurcturizer bugs.  You should run llc with -print-before-all to see if the constant branch exists before the structurizer is run.


http://reviews.llvm.org/D15093





More information about the llvm-commits mailing list