forked from OSchip/llvm-project
[fast-isel] Tell fast-isel to do nothing with the new donothing intrinsic.
llvm-svn: 159837
This commit is contained in:
parent
4cb38a82a2
commit
88d53eae56
|
@ -573,7 +573,10 @@ bool FastISel::SelectCall(const User *I) {
|
|||
// At -O0 we don't care about the lifetime intrinsics.
|
||||
case Intrinsic::lifetime_start:
|
||||
case Intrinsic::lifetime_end:
|
||||
// The donothing intrinsic does, well, nothing.
|
||||
case Intrinsic::donothing:
|
||||
return true;
|
||||
|
||||
case Intrinsic::dbg_declare: {
|
||||
const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call);
|
||||
if (!DIVariable(DI->getVariable()).Verify() ||
|
||||
|
|
|
@ -117,3 +117,11 @@ define i64* @life() nounwind {
|
|||
ret i64* %a3
|
||||
}
|
||||
|
||||
declare void @llvm.donothing() readnone
|
||||
|
||||
; CHECK: donada
|
||||
define void @donada() nounwind {
|
||||
entry:
|
||||
call void @llvm.donothing()
|
||||
ret void
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue