mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
Add a note.
llvm-svn: 118337
This commit is contained in:
parent
3ea0f8d504
commit
16b841c233
@ -1963,3 +1963,15 @@ bb3: ; preds = %entry
|
||||
ret i32 %b
|
||||
}
|
||||
//===---------------------------------------------------------------------===//
|
||||
We should fold this code into "ret i1 false" since neither %zero nor %one can
|
||||
ever be null pointers.
|
||||
|
||||
define i1 @foo(i1 %cond) {
|
||||
%zero = alloca i32
|
||||
%one = alloca i32
|
||||
|
||||
%ptr = select i1 %cond, i32* %zero, i32* %one
|
||||
%isnull = icmp eq i32* %ptr, null
|
||||
ret i1 %isnull
|
||||
}
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user