aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll
blob: d9f6db24837f99693d9537e4ae48e00514fb97d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
; distilled from 255.vortex
; RUN: as < %s | opt -globaldce | dis | not grep testfunc

implementation

declare bool()* %getfunc()
internal bool %testfunc() {
	%F = call bool()*()* %getfunc()
	%c = seteq bool()* %F, %testfunc
	ret bool %c
}