This is an archive of the discontinued LLVM Phabricator instance.

[FPEnv] The inliner shouldn't mix strictfp and non-strictfp functions.
AbandonedPublic

Authored by kpn on Oct 30 2019, 6:28 AM.

Details

Summary

Constrained FP intrinsic rules prohibit the mixing of constrained FP and non-constrained. When inlining functions this rule should not be violated.

This patch disables the "inline" and "alwaysinline" keywords when function attributes don't match.

Diff Detail

Event Timeline

kpn created this revision.Oct 30 2019, 6:28 AM
craig.topper added inline comments.Oct 30 2019, 11:13 AM
llvm/lib/Analysis/InlineCost.cpp
2039

Should this be a FIXME or TODO so it stands out?

kpn marked an inline comment as done.Oct 30 2019, 11:26 AM
kpn added inline comments.
llvm/lib/Analysis/InlineCost.cpp
2039

Sure, that makes sense.

kpn updated this revision to Diff 227147.Oct 30 2019, 11:30 AM

Address review comment: rework comment to stand out.

kpn planned changes to this revision.Nov 4 2019, 7:40 AM

It looks like D69798 may be more complete patch. Let me take this off everyone's queue while that one is in flight.

simoll added a subscriber: simoll.Nov 4 2019, 9:36 AM
pengfei added a subscriber: pengfei.Nov 4 2019, 9:34 PM
kpn abandoned this revision.Apr 19 2022, 11:22 AM

Not needed anymore after D69798 landed.

Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 11:22 AM