Add target hook to prevent folding some bitcasted loads.
[oota-llvm.git] / lib / Target / R600 / AMDGPUISelLowering.h
index dacb086dd5dfde8cfc2057d36fc67ca48a0922c2..2dfd3cf492a9ef35f026b0f5e633838db70ebf19 100644 (file)
@@ -77,6 +77,7 @@ public:
   virtual bool isFAbsFree(EVT VT) const;
   virtual bool isFNegFree(EVT VT) const;
   virtual MVT getVectorIdxTy() const;
+  virtual bool isLoadBitCastBeneficial(EVT, EVT) const LLVM_OVERRIDE;
   virtual SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv,
                               bool isVarArg,
                               const SmallVectorImpl<ISD::OutputArg> &Outs,