[fast-isel] Seriously, add support for the expect intrinsic.
authorChad Rosier <mcrosier@apple.com>
Thu, 7 Mar 2013 21:38:33 +0000 (21:38 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 7 Mar 2013 21:38:33 +0000 (21:38 +0000)
rdar://13370942

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176659 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index 35f7fcbd390aebc8a91f94e640705f5b089fae2d..4fb9c5c8a0317846c9790fd8148326f213ea22ed 100644 (file)
@@ -699,9 +699,9 @@ bool FastISel::SelectCall(const User *I) {
     return true;
   }
   case Intrinsic::expect: {
-//    unsigned ResultReg = getRegForValue(Call->getArgOperand(0));
-//    UpdateValueMap(Call, ResultReg);
-//    return true;
+    unsigned ResultReg = getRegForValue(Call->getArgOperand(0));
+    UpdateValueMap(Call, ResultReg);
+    return true;
   }
   }