mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add an OptimizedMandatoryCombine pass variant.
It's against the principles of pass design to check the driver mode within the pass. A pass always needs to do the same thing regardless of where it runs in the pass pipeline. It also needs to be possible to test passes in isolation.
This commit is contained in:
@@ -357,6 +357,8 @@ PASS(ForEachLoopUnroll, "for-each-loop-unroll",
|
||||
"Unroll forEach loops over array literals")
|
||||
PASS(MandatoryCombine, "mandatory-combine",
|
||||
"Perform mandatory peephole combines")
|
||||
PASS(OptimizedMandatoryCombine, "optimized-mandatory-combine",
|
||||
"Perform -O level mandatory peephole combines")
|
||||
PASS(BugReducerTester, "bug-reducer-tester",
|
||||
"sil-bug-reducer Tool Testing by Asserting on a Sentinel Function")
|
||||
PASS(OptRemarkGenerator, "sil-opt-remark-generator",
|
||||
|
||||
Reference in New Issue
Block a user