From 29333c9de6c7ab6ad1ca09d19d011927704db0c5 Mon Sep 17 00:00:00 2001 From: Ahmed Bougacha Date: Fri, 22 Jul 2016 12:54:53 +0000 Subject: [FastISel] Ignore @llvm.assume. llvm-svn: 276410 --- llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index b10da002fcf..4092c344bad 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -1104,6 +1104,8 @@ bool FastISel::selectIntrinsicCall(const IntrinsicInst *II) { case Intrinsic::lifetime_end: // The donothing intrinsic does, well, nothing. case Intrinsic::donothing: + // Neither does the assume intrinsic; it's also OK not to codegen its operand. + case Intrinsic::assume: return true; case Intrinsic::dbg_declare: { const DbgDeclareInst *DI = cast(II); -- cgit v1.2.3