git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156658
91177308-0d34-0410-b5e6-
96231b3b80d8
// Handle selected intrinsic function calls.
switch (F->getIntrinsicID()) {
default: break;
- // At -O0 we don't care about the lifetime intrinsics.
+ // At -O0 we don't care about the lifetime or expect intrinsics.
case Intrinsic::lifetime_start:
case Intrinsic::lifetime_end:
+ case Intrinsic::expect:
return true;
case Intrinsic::dbg_declare: {
const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call);