Index: lib/Transforms/Utils/LibCallsShrinkWrap.cpp =================================================================== --- lib/Transforms/Utils/LibCallsShrinkWrap.cpp +++ lib/Transforms/Utils/LibCallsShrinkWrap.cpp @@ -529,7 +529,6 @@ } void LibCallsShrinkWrapLegacyPass::getAnalysisUsage(AnalysisUsage &AU) const { - AU.setPreservesCFG(); AU.addRequired(); } Index: test/Transforms/InstCombine/shrinkwrap-nopreserve.ll =================================================================== --- /dev/null +++ test/Transforms/InstCombine/shrinkwrap-nopreserve.ll @@ -0,0 +1,8 @@ +; RUN: opt -instcombine -libcalls-shrinkwrap -gvn | FileCheck %s + +define void @TEST__MAIN() { + %_tmp31 = call float @acosf(float 2.000000e+00) + ret void +} + +declare float @acosf(float)