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
[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstSimplify
/
ConstProp
/
float-to-ptr-cast.ll
blob
7577e55fd357a66285c02e87eb89ef0a8be20b16
1
; RUN: opt < %s -passes=instsimplify -S | FileCheck %s
2
3
define ptr @test1() {
4
%X = inttoptr i64 0 to ptr ; <ptr> [#uses=1]
5
ret ptr %X
6
}
7
8
; CHECK: ret ptr null
9
10
define ptr @test2() {
11
ret ptr null
12
}
13
14
; CHECK: ret ptr null
15