mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
[fast-isel] Tell fast-isel to do nothing with the new donothing intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5171d5de6
commit
fd065bbed1
@ -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…
x
Reference in New Issue
Block a user