[llvm-commits] [polly] r143574 - in /polly/trunk: lib/Analysis/TempScopInfo.cpp test/ScopInfo/sum.ll
Tobias Grosser
grosser at fim.uni-passau.de
Wed Nov 2 14:37:06 PDT 2011
Author: grosser
Date: Wed Nov 2 16:37:06 2011
New Revision: 143574
URL: http://llvm.org/viewvc/llvm-project?rev=143574&view=rev
Log:
TempScopInfo: Print the original SCEV instead of using SCEVAffFunc
This is reducing the impact of SCEVAffFunc
Modified:
polly/trunk/lib/Analysis/TempScopInfo.cpp
polly/trunk/test/ScopInfo/sum.ll
Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=143574&r1=143573&r2=143574&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Wed Nov 2 16:37:06 2011
@@ -156,7 +156,7 @@
if (at != LoopBounds.end()) {
OS.indent(ind) << "Bounds of Loop: " << at->first->getHeader()->getName()
<< ":\t{ ";
- at->second.print(OS, false);
+ OS << *(at->second.OriginalSCEV);
OS << " }\n";
ind += 2;
}
Modified: polly/trunk/test/ScopInfo/sum.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScopInfo/sum.ll?rev=143574&r1=143573&r2=143574&view=diff
==============================================================================
--- polly/trunk/test/ScopInfo/sum.ll (original)
+++ polly/trunk/test/ScopInfo/sum.ll Wed Nov 2 16:37:06 2011
@@ -11,11 +11,6 @@
; }
; return k;
;}
-
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
-target triple = "x86_64-linux-gnu"
-
define i64 @f(i64* nocapture %a, i64 %n) nounwind readonly {
entry:
%0 = icmp sgt i64 %n, 1 ; <i1> [#uses=1]
@@ -40,7 +35,7 @@
ret i64 %k.0.lcssa
}
-; CHECK: Bounds of Loop: bb: { 1 * %n + -2 }
+; CHECK: Bounds of Loop: bb: { (-2 + %n) }
; CHECK: BB: bb{
; CHECK: Reads %k.05.reg2mem[0] Refs: Must alias {%k.05.reg2mem, } May alias {},
; CHECK: Reads %a[8 * {0,+,1}<%bb> + 8] Refs: Must alias {%a, } May alias {},
More information about the llvm-commits
mailing list