[PATCH] D142907: LangRef: Add "dynamic" option to "denormal-fp-math"
Matt Arsenault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 21 12:42:28 PDT 2023
arsenm added a comment.
In D142907#4288247 <https://reviews.llvm.org/D142907#4288247>, @efriedma wrote:
> Given that, I don't follow the whole "merging" thing... we should just be setting whatever mode is active. The attribute setting should not depend on whether the function is interposable. If you have a ODR function, all definitions must have a mode compatible with whatever mode will be used at runtime. If you have a non-ODR weak function, optimizations shouldn't propagate that mode from the callee to the caller.
The point is to have code that works with either mode. The intent is to avoid duplicating code for an extremely marginal difference. Having to duplicate every library function for denormal flushing and ieee handling defeats the purpose. The specialization will be realized after linking / inlining
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142907/new/
https://reviews.llvm.org/D142907
More information about the cfe-commits
mailing list