Skip to content

Commit e40f5d3

Browse files
author
Chad Rosier
committed
[fast-isel] Fast-isel doesn't use the expect intrinsic.
llvm-svn: 156658
1 parent 4f362c7 commit e40f5d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/FastISel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,10 @@ bool FastISel::SelectCall(const User *I) {
570570
// Handle selected intrinsic function calls.
571571
switch (F->getIntrinsicID()) {
572572
default: break;
573-
// At -O0 we don't care about the lifetime intrinsics.
573+
// At -O0 we don't care about the lifetime or expect intrinsics.
574574
case Intrinsic::lifetime_start:
575575
case Intrinsic::lifetime_end:
576+
case Intrinsic::expect:
576577
return true;
577578
case Intrinsic::dbg_declare: {
578579
const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call);

0 commit comments

Comments
 (0)