Index: llvm/lib/Transforms/Scalar/LICM.cpp =================================================================== --- llvm/lib/Transforms/Scalar/LICM.cpp +++ llvm/lib/Transforms/Scalar/LICM.cpp @@ -226,7 +226,7 @@ *L->getHeader()->getParent()), &getAnalysis().getTTI( *L->getHeader()->getParent()), - SE ? &SE->getSE() : nullptr, MSSA, &ORE, false); + SE ? &SE->getSE() : nullptr, MSSA, &ORE, true); } /// This transformation requires natural loop information & requires that