swift
30c2a08e - Disqualify non-trivial store to an alloc_stack as a safe instruction while hositing array bounds checks

Commit
74 days ago
Disqualify non-trivial store to an alloc_stack as a safe instruction while hositing array bounds checks Array bounds checks hoisting analyzes instructions in the loop to find if it's safe to hoist bounds checks when the array value is not dominating the loop. This analysis considered stores to alloc_stacks as safe. But a store to a non-trivial alloc_stack holding an Array<T> can replace it with a smaller array and should be considered unsafe for hoisting. Note this issue isn't present for Span, InlineArray etc. Resolves rdar://183450964
Author
Committer
Parents
Loading