When the two operands of an icmp are equal, there are five possible predicates
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2002-06-24-PHINode.ll
1 ; -simplifycfg is not folding blocks if there is a PHI node involved.  This 
2 ; should be fixed eventually
3
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br
5
6 int %main(int %argc) {
7         br label %InlinedFunctionReturnNode
8
9 InlinedFunctionReturnNode:                                      ;[#uses=1]
10         %X = phi int [ 7, %0 ]          ; <int> [#uses=1]
11         %Y = add int %X, %argc          ; <int> [#uses=1]
12         ret int %Y
13 }
14