[CodeGenPrepare] Reapply r224351 with a fix for the assertion failure:
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.cpp
index 2cd1d12ac7dd5964b01163f161a54170a71473f6..2678ca645fd01872e37e0a47facdd215615b9380 100644 (file)
@@ -1689,7 +1689,7 @@ void X86TargetLowering::resetOperationActions() {
 
   // Predictable cmov don't hurt on atom because it's in-order.
   PredictableSelectIsExpensive = !Subtarget->isAtom();
-
+  EnableExtLdPromotion = true;
   setPrefFunctionAlignment(4); // 2^4 bytes.
 
   verifyIntrinsicTables();