projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Revert r218778 while investigating buldbot breakage.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
IntPtrCast.ll
1
; RUN: opt < %s -instcombine -S | FileCheck %s
2
target datalayout = "e-p:32:32"
3
4
define i32* @test(i32* %P) {
5
%V = ptrtoint i32* %P to i32 ; <i32> [#uses=1]
6
%P2 = inttoptr i32 %V to i32* ; <i32*> [#uses=1]
7
ret i32* %P2
8
; CHECK: ret i32* %P
9
}
10