[llvm-commits] [polly] r139092 - in /polly/trunk: lib/CodeGeneration.cpp test/CodeGen/do_pluto_matmult.ll

Tobias Grosser grosser at fim.uni-passau.de
Sun Sep 4 04:45:22 PDT 2011


Author: grosser
Date: Sun Sep  4 06:45:22 2011
New Revision: 139092

URL: http://llvm.org/viewvc/llvm-project?rev=139092&view=rev
Log:
CodeGen: Improve naming of copied basic blocks

It may happen that we generate the code of a basic block from the original
scop is code generated several times. The new naming scheme reduces confusing
that earlier appeared as the version numbers of the new basic blocks could
have been interpreted as part of the name of the original basic block.

Modified:
    polly/trunk/lib/CodeGeneration.cpp
    polly/trunk/test/CodeGen/do_pluto_matmult.ll

Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=139092&r1=139091&r2=139092&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Sun Sep  4 06:45:22 2011
@@ -551,7 +551,8 @@
     Function *F = Builder.GetInsertBlock()->getParent();
     LLVMContext &Context = F->getContext();
     BasicBlock *CopyBB = BasicBlock::Create(Context,
-                                            "polly.stmt_" + BB->getNameStr(),
+                                            "polly." + BB->getNameStr()
+                                            + ".stmt",
                                             F);
     Builder.CreateBr(CopyBB);
     DT->addNewBlock(CopyBB, Builder.GetInsertBlock());

Modified: polly/trunk/test/CodeGen/do_pluto_matmult.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CodeGen/do_pluto_matmult.ll?rev=139092&r1=139091&r2=139092&view=diff
==============================================================================
--- polly/trunk/test/CodeGen/do_pluto_matmult.ll (original)
+++ polly/trunk/test/CodeGen/do_pluto_matmult.ll Sun Sep  4 06:45:22 2011
@@ -215,7 +215,7 @@
 ; IMPORT: }
 
 
-; CODEGEN: polly.stmt_do.body2
+; CODEGEN: polly.do.body2.stmt
 
 ; REVERSE: for (c2=-35;c2<=0;c2++) {
 ; REVERSE:     for (c4=-35;c4<=0;c4++) {





More information about the llvm-commits mailing list