Use context to prove that load can be safely executed at a point where load is being hoisted.
Postpone the decision about safety of speculative load execution till the moment we know
where we hoist load and check safety at that context.
Paths
| Differential D88725
[GVN LoadPRE] Extend the scope of optimization by using context to prove safety of speculation ClosedPublic Authored by skatkov on Oct 2 2020, 3:09 AM.
Details Summary Use context to prove that load can be safely executed at a point where load is being hoisted. Postpone the decision about safety of speculative load execution till the moment we know
Diff Detail
Event Timeline
Comment Actions LGTM w/minor fixes.
This revision is now accepted and ready to land.Oct 2 2020, 8:59 AM Comment Actions Seems fine to me overall.
Comment Actions Handled comments. Will wait for a day to give a chance for Roman, Philip and Max to take a look one more time. Closed by commit rGb9888980132e: [GVN LoadPRE] Extend the scope of optimization by using context to prove safety… (authored by skatkov). · Explain WhyOct 5 2020, 7:27 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 296348 llvm/lib/Transforms/Scalar/GVN.cpp
llvm/test/Transforms/GVN/loadpre-context.ll
|
This variable name doesn't parse for me.
Perhaps something like MustEnsureSafetyOfSpeculativeExecutetion