summaryrefslogtreecommitdiff
path: root/polly/lib/CodeGen/PPCGCodeGeneration.cpp
diff options
context:
space:
mode:
authorSiddharth Bhat <siddu.druid@gmail.com>2017-07-28 14:48:32 +0000
committerSiddharth Bhat <siddu.druid@gmail.com>2017-07-28 14:48:32 +0000
commit4ebeb3568a196c5564a9fe654bd59be3d5a0e08b (patch)
tree77018408835225c26db34a9df36f9b4cfb91eb50 /polly/lib/CodeGen/PPCGCodeGeneration.cpp
parent45b40147117668ce65bff4f6a240bdae4ad4bf7d (diff)
[PPCGCodeGeneration] Check that invariant load hoisting succeeded.
If we fail, throw an error for now. We can gracefully handle this later. llvm-svn: 309387
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/PPCGCodeGeneration.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index 7f0a03b375c7..2189df3b9e49 100644
--- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -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);