[polly] r260857 - CodeGeneration: Add back verification of generated code

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 14 12:56:49 PST 2016


Author: grosser
Date: Sun Feb 14 14:56:49 2016
New Revision: 260857

URL: http://llvm.org/viewvc/llvm-project?rev=260857&view=rev
Log:
CodeGeneration: Add back verification of generated code

This got accidentally dropped in r260025

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

Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=260857&r1=260856&r2=260857&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Sun Feb 14 14:56:49 2016
@@ -174,6 +174,9 @@ public:
       fixRegionInfo(EnteringBB->getParent(), R->getParent());
     }
 
+    assert(!verifyGeneratedFunction(S, *EnteringBB->getParent()) &&
+           "Verification of generated function failed");
+
     // Mark the function such that we run additional cleanup passes on this
     // function (e.g. mem2reg to rediscover phi nodes).
     Function *F = EnteringBB->getParent();




More information about the llvm-commits mailing list