[CodeGen] Add hook/combine to form vector extloads, enabled on X86.
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.h
index d90dcc714514712e277a4317aa9d98f35326130a..eb904f31788cd391a28946a5b479ce2cc59bac02 100644 (file)
@@ -744,6 +744,10 @@ namespace llvm {
     bool isZExtFree(EVT VT1, EVT VT2) const override;
     bool isZExtFree(SDValue Val, EVT VT2) const override;
 
+    /// Return true if folding a vector load into ExtVal (a sign, zero, or any
+    /// extend node) is profitable.
+    bool isVectorLoadExtDesirable(SDValue) const override;
+
     /// Return true if an FMA operation is faster than a pair of fmul and fadd
     /// instructions. fmuladd intrinsics will be expanded to FMAs when this
     /// method returns true, otherwise fmuladd is expanded to fmul + fadd.