[fast-isel] Tell fast-isel to do nothing with the new donothing intrinsic.

llvm-svn: 159837
This commit is contained in:
Chad Rosier 2012-07-06 17:33:39 +00:00
parent 4cb38a82a2
commit 88d53eae56
2 changed files with 11 additions and 0 deletions

View File

@ -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() ||

View File

@ -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
}