repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2008-10-23-ConstFoldWithoutMask.ll
blob
a01da8267f144e279017aad3317b3c1cb82a49d4
1
; RUN: opt < %s -passes=instcombine
2
; PR2940
3
4
define i32 @tstid() {
5
%var0 = inttoptr i32 1 to ptr ; <ptr> [#uses=1]
6
%var2 = ptrtoint ptr %var0 to i32 ; <i32> [#uses=1]
7
ret i32 %var2
8
}