with recent work, we now optimize this into:
authorChris Lattner <sabre@nondot.org>
Mon, 24 Jan 2011 01:12:18 +0000 (01:12 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Jan 2011 01:12:18 +0000 (01:12 +0000)
commit7ea7d32de64247e1432a3d8b8d7bd4515714e63e
tree5d0632bb5e51fe541283b000b690c14bf6d4fb31
parente3357863aaabe297c5fa819d083f2308ebb5f2c2
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
lib/Target/README.txt