This is one of the optimizations ported from ARM64 to AArch64 to address the performa...
[oota-llvm.git] / lib / Target / AArch64 / AArch64ISelLowering.cpp
index 1e79894472295ff11e80e923f2541d924fa40bf0..0310f1bc115eabebb50962636e363b9c179fb407 100644 (file)
@@ -540,6 +540,8 @@ AArch64TargetLowering::AArch64TargetLowering(AArch64TargetMachine &TM)
 
   setTargetDAGCombine(ISD::SIGN_EXTEND);
   setTargetDAGCombine(ISD::VSELECT);
+
+  MaskAndBranchFoldingIsLegal = true;
 }
 
 EVT AArch64TargetLowering::getSetCCResultType(LLVMContext &, EVT VT) const {