[PATCH] D17353: Set minimum cost of speculating an instruction.

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 17:25:36 PST 2016


davidxl added inline comments.

================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:255
@@ +254,3 @@
+  if (Cost < TargetTransformInfo::TCC_Basic)
+    Cost = TargetTransformInfo::TCC_Basic;
+  return Cost;
----------------
My real question is why TTI.getUserCost(I) returns the wrong cost here :)


http://reviews.llvm.org/D17353





More information about the llvm-commits mailing list