We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c73ef commit 4f054f1Copy full SHA for 4f054f1
lib/SILOptimizer/LoopTransforms/ArrayPropertyOpt.cpp
@@ -254,7 +254,6 @@ class ArrayPropertiesAnalysis {
254
/// new array onto it.
255
bool checkSafeArrayAddressUses(UserList &AddressUsers) {
256
for (auto *UseInst : AddressUsers) {
257
-
258
if (UseInst->isDebugInstruction())
259
continue;
260
@@ -263,6 +262,10 @@ class ArrayPropertiesAnalysis {
263
262
264
}
265
+ if (isa<LoadInst>(UseInst)) {
266
+ continue;
267
+ }
268
+
269
if (auto *AI = dyn_cast<ApplyInst>(UseInst)) {
270
if (ArraySemanticsCall(AI))
271
0 commit comments