mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ownership] Do some preliminary work for moving OME out of the diagnostics pipeline.
This disables a bunch of passes when ownership is enabled. This will allow me to keep transparent functions in ossa and skip most of the performance pipeline without being touched by passes that have not been updated for ownership. This is important so that we can in -Onone code import transparent functions and inline them into other ossa functions (you can't inline from ossa => non-ossa).
This commit is contained in:
@@ -1163,6 +1163,10 @@ class SILCSE : public SILFunctionTransform {
|
||||
bool RunsOnHighLevelSil;
|
||||
|
||||
void run() override {
|
||||
// FIXME: We should be able to support ownership.
|
||||
if (getFunction()->hasOwnership())
|
||||
return;
|
||||
|
||||
LLVM_DEBUG(llvm::dbgs() << "***** CSE on function: "
|
||||
<< getFunction()->getName() << " *****\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user