Use the intrinsic instead of emitting the libcall which
will be replaced by the intrinsic.
There are some additional places using this like ConstantFolding that may want to stay
Differential D28453
SimplifyLibCalls: Remove checks for fabs arsenm on Jan 7 2017, 8:22 PM. Authored by
Details
Use the intrinsic instead of emitting the libcall which There are some additional places using this like ConstantFolding that may want to stay
Diff Detail Event Timeline
Comment Actions I expected Comment Actions LGTM with a minor tweak.
I don't see why this would be worth keeping. instcombine will transform fabs(const)->llvm.fabs(const)->const.
|
You can fold Callee->getParent() as the first argument of getDeclaration because it has only one use, no?