summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-01-15 09:29:27 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-01-15 09:29:27 +0000
commit0952750faea70aeb600f4416203e80b516c434c9 (patch)
tree90b97f010e903f48a3939c39a2fe5ac98b1c19e8 /llvm
parentaac56849a141e22379e9824da41086f03111714d (diff)
downloadbcm5719-llvm-0952750faea70aeb600f4416203e80b516c434c9.tar.gz
bcm5719-llvm-0952750faea70aeb600f4416203e80b516c434c9.zip
[PM] Clean up the testing for IVUsers, especially with the new PM.
First, I've moved a test of IVUsers from the LSR tree to a dedicated IVUsers test directory. I've also simplified its RUN line now that the new pass manager's loop PM is providing analyses on their own. No functionality changed, but it makes subsequent changes cleaner. llvm-svn: 292060
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Analysis/IVUsers/quadradic-exit-value.ll (renamed from llvm/test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll)9
-rw-r--r--llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll1
-rw-r--r--llvm/test/Analysis/ScalarEvolution/2012-05-18-LoopPredRecurse.ll1
-rw-r--r--llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll1
4 files changed, 11 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll b/llvm/test/Analysis/IVUsers/quadradic-exit-value.ll
index 09f0e1aa2a0..593c0e388da 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll
+++ b/llvm/test/Analysis/IVUsers/quadradic-exit-value.ll
@@ -1,5 +1,12 @@
+; This test ensures that IVUsers works correctly in the legacy pass manager
+; without LCSSA and in the specific ways that some of its users (LSR) require.
+;
+; FIXME: We need some way to match the precision here in the new PM where loop
+; passes *always* work on LCSSA. This should stop using a different set of
+; checks at that point.
+
; RUN: opt < %s -analyze -iv-users | FileCheck %s
-; RUN: opt -passes='function(require<scalar-evolution>,loop(print<ivusers>))' -S < %s 2>&1| FileCheck %s
+; RUN: opt < %s -disable-output -passes='print<ivusers>' 2>&1 | FileCheck %s
; Provide legal integer types.
target datalayout = "n8:16:32:64"
diff --git a/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll b/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll
index 973dd7d6dd0..4f126fbf6b3 100644
--- a/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll
+++ b/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll
@@ -1,4 +1,5 @@
; RUN: opt < %s -analyze -iv-users
+; RUN: opt < %s -passes='print<ivusers>'
; PR9633: Tests that SCEV handles the mul.i2 recurrence being folded to
; constant zero.
diff --git a/llvm/test/Analysis/ScalarEvolution/2012-05-18-LoopPredRecurse.ll b/llvm/test/Analysis/ScalarEvolution/2012-05-18-LoopPredRecurse.ll
index 66df9d19234..853d43c4f87 100644
--- a/llvm/test/Analysis/ScalarEvolution/2012-05-18-LoopPredRecurse.ll
+++ b/llvm/test/Analysis/ScalarEvolution/2012-05-18-LoopPredRecurse.ll
@@ -1,4 +1,5 @@
; RUN: opt < %s -iv-users -S -disable-output
+; RUN: opt < %s -passes='require<ivusers>' -S -disable-output
;
; PR12868: Infinite recursion:
; getUDivExpr()->getZeroExtendExpr()->isLoopBackedgeGuardedBy()
diff --git a/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll b/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll
index f61b667dcfa..8e519d409ed 100644
--- a/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll
+++ b/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll
@@ -1,4 +1,5 @@
; RUN: opt < %s -iv-users
+; RUN: opt < %s -passes='require<ivusers>'
; PR4538
; ModuleID = 'bugpoint-reduced-simplified.bc'
OpenPOWER on IntegriCloud