File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
lib/SILOptimizer/LoopTransforms Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1021,6 +1021,8 @@ void LoopTreeOptimization::analyzeCurrentLoop(
1021
1021
std::any_of (sideEffects.begin (), sideEffects.end (),
1022
1022
[&](SILInstruction *W) { return W->mayRelease (); });
1023
1023
for (auto *FL : FixLifetimes) {
1024
+ if (!FL->getOperand ()->getType ().isAddress ())
1025
+ continue ;
1024
1026
if (!sideEffectsMayRelease || !mayWriteTo (AA, sideEffects, FL)) {
1025
1027
SinkDown.push_back (FL);
1026
1028
}
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ sil_global @globalArray : $Storage
25
25
26
26
// CHECK: bb2({{.*}}):
27
27
// CHECK-NOT: load
28
- // CHECK-NOT: fix_lifetime
29
28
// CHECK: cond_br
30
29
31
30
sil @memset : $@convention(thin) (@inout Builtin.NativeObject, Int) -> () {
You can’t perform that action at this time.
0 commit comments