[polly] r309387 - [PPCGCodeGeneration] Check that invariant load hoisting succeeded.

Siddharth Bhat via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 07:48:32 PDT 2017


Author: bollu
Date: Fri Jul 28 07:48:32 2017
New Revision: 309387

URL: http://llvm.org/viewvc/llvm-project?rev=309387&view=rev
Log:
[PPCGCodeGeneration] Check that invariant load hoisting succeeded.

If we fail, throw an error for now. We can gracefully handle this later.

Modified:
    polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp

Modified: polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp?rev=309387&r1=309386&r2=309387&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp Fri Jul 28 07:48:32 2017
@@ -3197,7 +3197,10 @@ public:
 
     // preload invariant loads. Note: This should happen before the RTC
     // because the RTC may depend on values that are invariant load hoisted.
-    NodeBuilder.preloadInvariantLoads();
+    if (!NodeBuilder.preloadInvariantLoads())
+      report_fatal_error("preloading invariant loads failed in function: " +
+                         S->getFunction().getName() +
+                         " | Scop Region: " + S->getNameStr());
 
     Value *RTC = NodeBuilder.createRTC(Condition);
     Builder.GetInsertBlock()->getTerminator()->setOperand(0, RTC);




More information about the llvm-commits mailing list