Probably also need to check for hasPRFTCHW here if (Subtarget->hasSSE1()) setOperationAction(ISD::PREFETCH , MVT::Other, Legal); http://llvm-reviews.chandlerc.com/D1934