mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Create RCIdentityAnalysis a cache for stripRCIdentityPreservingOps.
The cache is needed to ensure we do not run into compile time problems once we start looking through Phi Nodes. The analysis is currently disabled and just returns SILValue::stripRCIdentityPreservingOps. I am going to thread it through the rest of the passes that use that call. Then I am going to hide stripRCIdentityPreservingArgs. Finally post OzU, I am going to enable the pass. rdar://18300069 Swift SVN r21891
This commit is contained in:
@@ -41,7 +41,6 @@ static bool isRCIdentityPreservingCast(ValueKind Kind) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Return the underlying SILValue after stripping off identity SILArguments if
|
||||
/// we belong to a BB with one predecessor.
|
||||
static SILValue stripSinglePredecessorArgs(SILValue V) {
|
||||
|
||||
Reference in New Issue
Block a user