commit | 7ea7d32de64247e1432a3d8b8d7bd4515714e63e | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Jan 24 01:12:18 2011 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Jan 24 01:12:18 2011 +0000 |
tree | 5d0632bb5e51fe541283b000b690c14bf6d4fb31 | |
parent | e3357863aaabe297c5fa819d083f2308ebb5f2c2 [diff] |
with recent work, we now optimize this into: define i32 @foo(i32 %x) nounwind readnone ssp { entry: %tobool = icmp eq i32 %x, 0 %tmp5 = select i1 %tobool, i32 2, i32 1 ret i32 %tmp5 } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124091 91177308-0d34-0410-b5e6-96231b3b80d8