Since some values can be swift errors, we need to make sure that we correctly propagate the parameter attributes.
Tests found at:
llvm/test/Transforms/IROutliner/outlining-swift-error.ll
Paths
| Differential D87742
[IROutliner] Adding support for swift errors ClosedPublic Authored by AndrewLitteken on Sep 15 2020, 10:08 PM.
Details Summary Since some values can be swift errors, we need to make sure that we correctly propagate the parameter attributes. Tests found at:
Diff Detail
Event TimelineAndrewLitteken added a parent revision: D86978: [IROutliner] Deduplicating functions that only require inputs..Sep 15 2020, 10:08 PM This revision is now accepted and ready to land.Sep 18 2020, 12:09 PM This revision was landed with ongoing or failed builds.Dec 29 2020, 11:17 PM Closed by commit rG30feb93036eb: [IROutliner] Adding support for swift errors in the IROutliner (authored by AndrewLitteken). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 314077 llvm/lib/Transforms/IPO/IROutliner.cpp
llvm/test/Transforms/IROutliner/outlining-swift-error.ll
|
With Optionals, we usually avoid calling hasValue()/getValue() most of the time, and instead treat them as if they had pointer semantics. Subjectively, this increases readability.