mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-12 01:25:10 +00:00
Introduce "expect" intrinsic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -353,6 +353,13 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
|
||||
report_fatal_error("Code generator does not support intrinsic function '"+
|
||||
Callee->getName()+"'!");
|
||||
|
||||
case Intrinsic::expect: {
|
||||
// Just replace __builtin_expect(exp, c) with EXP.
|
||||
Value *V = CI->getArgOperand(0);
|
||||
CI->replaceAllUsesWith(V);
|
||||
break;
|
||||
}
|
||||
|
||||
// The setjmp/longjmp intrinsics should only exist in the code if it was
|
||||
// never optimized (ie, right out of the CFE), or if it has been hacked on
|
||||
// by the lowerinvoke pass. In both cases, the right thing to do is to
|
||||
|
Reference in New Issue
Block a user