From 59850d0874429601812bc13408cb1f776649027c Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Wed, 14 Oct 2009 17:57:32 +0000 Subject: Update llvm to r84119. --- .../LICM/2003-02-26-LoopExitNotDominated.ll | 2 +- .../LICM/2003-02-27-NestedLoopExitBlocks.ll | 2 +- .../LICM/2003-02-27-PreheaderExitNodeUpdate.ll | 2 +- .../Transforms/LICM/2003-02-27-PreheaderProblem.ll | 2 +- test/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll | 2 +- .../LICM/2003-02-28-PromoteDifferentType.ll | 2 +- test/Transforms/LICM/2003-05-02-LoadHoist.ll | 2 +- test/Transforms/LICM/2003-12-11-SinkingToPHI.ll | 2 +- .../LICM/2004-09-14-AliasAnalysisInvalidate.ll | 2 +- test/Transforms/LICM/2004-11-17-UndefIndexCrash.ll | 2 +- .../LICM/2005-03-24-LICM-Aggregate-Crash.ll | 2 +- .../LICM/2006-09-12-DeadUserOfSunkInstr.ll | 2 +- test/Transforms/LICM/2007-05-22-VolatileSink.ll | 2 +- test/Transforms/LICM/2007-07-30-AliasSet.ll | 2 +- test/Transforms/LICM/2007-09-17-PromoteValue.ll | 2 +- .../Transforms/LICM/2007-09-24-PromoteNullValue.ll | 2 +- .../Transforms/LICM/2007-10-01-PromoteSafeValue.ll | 2 +- test/Transforms/LICM/2008-05-20-AliasSetVAArg.ll | 2 +- .../LICM/2008-07-22-LoadGlobalConstant.ll | 2 +- test/Transforms/LICM/2009-03-25-AliasSetTracker.ll | 2 +- test/Transforms/LICM/Preserve-LCSSA.ll | 2 +- test/Transforms/LICM/basictest.ll | 2 +- test/Transforms/LICM/hoisting.ll | 50 +++++ test/Transforms/LICM/licm_preserve_dbginfo.ll | 55 +++++ test/Transforms/LICM/no-preheader-test.ll | 2 +- test/Transforms/LICM/scalar_promote.ll | 52 ++++- test/Transforms/LICM/sinking.ll | 235 +++++++++++++++++++++ 27 files changed, 408 insertions(+), 30 deletions(-) create mode 100644 test/Transforms/LICM/hoisting.ll create mode 100644 test/Transforms/LICM/licm_preserve_dbginfo.ll create mode 100644 test/Transforms/LICM/sinking.ll (limited to 'test/Transforms/LICM') diff --git a/test/Transforms/LICM/2003-02-26-LoopExitNotDominated.ll b/test/Transforms/LICM/2003-02-26-LoopExitNotDominated.ll index cf05206179386..ff20312ec372b 100644 --- a/test/Transforms/LICM/2003-02-26-LoopExitNotDominated.ll +++ b/test/Transforms/LICM/2003-02-26-LoopExitNotDominated.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -basicaa -licm -disable-output +; RUN: opt < %s -basicaa -licm -disable-output ;%MoveArray = external global [64 x ulong] diff --git a/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll b/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll index bf209eaa479f0..4782bd17f8933 100644 --- a/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll +++ b/test/Transforms/LICM/2003-02-27-NestedLoopExitBlocks.ll @@ -1,6 +1,6 @@ ; Exit blocks need to be updated for all nested loops... -; RUN: llvm-as < %s | opt -loopsimplify +; RUN: opt < %s -loopsimplify define i32 @yyparse() { bb0: diff --git a/test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll b/test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll index 4b51a3be4b065..2718cb1053773 100644 --- a/test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll +++ b/test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll @@ -1,7 +1,7 @@ ; This testcase fails because preheader insertion is not updating exit node ; information for loops. -; RUN: llvm-as < %s | opt -licm +; RUN: opt < %s -licm define i32 @main(i32 %argc, i8** %argv) { bb0: diff --git a/test/Transforms/LICM/2003-02-27-PreheaderProblem.ll b/test/Transforms/LICM/2003-02-27-PreheaderProblem.ll index 18b86064ed04a..70a04c73b1d3e 100644 --- a/test/Transforms/LICM/2003-02-27-PreheaderProblem.ll +++ b/test/Transforms/LICM/2003-02-27-PreheaderProblem.ll @@ -3,7 +3,7 @@ ; happens because preheader insertion doesn't insert a preheader for this ; case... bad. -; RUN: llvm-as < %s | opt -licm -loop-deletion -simplifycfg | llvm-dis | \ +; RUN: opt < %s -licm -loop-deletion -simplifycfg -S | \ ; RUN: not grep {br } define i32 @main(i32 %argc) { diff --git a/test/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll b/test/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll index 7ce164ec237f7..a9c6b856f8ea5 100644 --- a/test/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll +++ b/test/Transforms/LICM/2003-02-27-StoreSinkPHIs.ll @@ -1,6 +1,6 @@ ; LICM is adding stores before phi nodes. bad. -; RUN: llvm-as < %s | opt -licm +; RUN: opt < %s -licm define i1 @test(i1 %c) { ;