mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
50e8682f28
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6965 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
519 B
LLVM
19 lines
519 B
LLVM
; a load or store of a pointer indicates that the pointer is not null.
|
|
; Any succeeding uses of the pointer should get this info
|
|
|
|
; RUN: as < %s | opt -cee -instcombine -simplifycfg | dis | not grep br
|
|
|
|
implementation ; Functions:
|
|
|
|
int %nullptr(int* %j) {
|
|
bb0:
|
|
store int 7, int* %j ; j != null
|
|
%cond220 = seteq int* %j, null ; F
|
|
br bool %cond220, label %bb3, label %bb4 ; direct branch
|
|
|
|
bb3:
|
|
ret int 4 ; Dead code
|
|
bb4:
|
|
ret int 3 ; Live code
|
|
}
|