improve validity check to handle constant-trip-count loops more
[llvm/stm8.git] / test / Transforms / InstSimplify / 2010-12-31-ValueNumber.ll
blob5fd94aa78abc93320f4ffd38569d4be32a06a513
1 ; RUN: opt < %s -instsimplify -S | FileCheck %s
2 define i1 @g(i32 %a) nounwind readnone {
3 ; CHECK: @g
4   %add = shl i32 %a, 1
5   %mul = shl i32 %a, 1
6   %cmp = icmp ugt i32 %add, %mul
7   ret i1 %cmp
8 ; CHECK: ret i1 false