Skip to content

Commit 7d9e748

Browse files
committed
code simpl
1 parent a7e40dd commit 7d9e748

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ir/memory.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2864,9 +2864,7 @@ void Memory::escape_helper(const expr &ptr, AliasSet &set1, AliasSet *set2) {
28642864
} else if (isFnReturnValue(bid_expr)) {
28652865
// Function calls have already escaped whatever they needed to.
28662866
} else {
2867-
expr val, arr, idx;
2868-
unsigned h, l;
2869-
if (bid_expr.isExtract(val, h, l) && val.isLoad(arr, idx)) {
2867+
if (isDerivedFromLoad(bid_expr)) {
28702868
// if this a load, it can't escape anything that hasn't escaped before
28712869
continue;
28722870
}

0 commit comments

Comments
 (0)