1 ; Test to make sure unused llvm.invariant.start calls are not trivially eliminated
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
6 declare { }* @llvm.invariant.start(i64, i8* nocapture) nounwind readonly
9 %a = alloca i8 ; <i8*> [#uses=4]
11 %i = call { }* @llvm.invariant.start(i64 1, i8* %a) ; <{ }*> [#uses=0]
12 ; CHECK: call { }* @llvm.invariant.start
14 %r = load i8* %a ; <i8> [#uses=1]