[PATCH] D22551: CodeGen: If Convert blocks that would form a diamond when tail-merged.

Kyle Butt via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 18:20:59 PDT 2016


iteratee added a comment.

I split ScanInstructions in two, made the actual scan take iterator bounds, and removed RecaculateCostsAndClobbers.


================
Comment at: lib/CodeGen/IfConversion.cpp:1184
@@ -929,3 +1183,3 @@
     if (ValidTriangle(TrueBBI, FalseBBI, false, Dups, Prediction) &&
         MeetIfcvtSizeLimit(*TrueBBI.BB, TrueBBI.NonPredSize + TrueBBI.ExtraCost,
                            TrueBBI.ExtraCost2, Prediction) &&
----------------
I factored out the feasibility analysis. Take a look now.


https://reviews.llvm.org/D22551





More information about the llvm-commits mailing list