make all Emit*() functions consult the TargetLibraryInfo information before creating...
[oota-llvm.git] / lib / Transforms / Scalar / CodeGenPrepare.cpp
index 277c4d58f9356df921478a7aa4acb2ff19791e6f..f425cd03be6b8b0191fb6695745b2c6741596397 100644 (file)
@@ -610,7 +610,7 @@ bool CodeGenPrepare::OptimizeCallInst(CallInst *CI) {
   // that have the default "don't know" as the objectsize.  Anything else
   // should be left alone.
   CodeGenPrepareFortifiedLibCalls Simplifier;
-  return Simplifier.fold(CI, TD);
+  return Simplifier.fold(CI, TD, TLInfo);
 }
 
 /// DupRetToEnableTailCallOpts - Look for opportunities to duplicate return