[llvm-commits] [llvm] r45305 - in /llvm/trunk: lib/Transforms/Utils/SimplifyCFG.cpp test/Transforms/SimplifyCFG/2007-12-21-Crash.ll

Chris Lattner clattner at apple.com
Sat Dec 22 10:45:41 PST 2007


On Dec 21, 2007, at 5:32 PM, Devang Patel wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=45305&view=rev
> Log:
> If succ has succ itself as one of the predecessors then do
> not merge current bb and succ even if bb's terminator is
> unconditional branch to succ.

Hi Devang,

> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/test/Transforms/SimplifyCFG/2007-12-21-Crash.ll (added)
> +++ llvm/trunk/test/Transforms/SimplifyCFG/2007-12-21-Crash.ll Fri  
> Dec 21 19:32:53 2007
> @@ -0,0 +1,60 @@
> +; RUN:  llvm-as < %s | opt -std-compile-opts -disable-output

Please just make the testcase use -simplifycfg instead of -std-compile- 
opts.  The contents of -std-compile-opts can change over time and we  
want to make sure that this is testing the right thing.  Thanks!

-Chris



More information about the llvm-commits mailing list