Commit 699ba63c authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Check index type for potential element aliasing.

When deciding whether to nuke an element entry from the state table,
base the decision for the index only on the type information, and
don't even try to run it through the alias analyzer.

R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2301943002
Cr-Commit-Position: refs/heads/master@{#39116}
parent d67fedb1
......@@ -216,7 +216,8 @@ LoadElimination::AbstractElements::Kill(Node* object, Node* index,
DCHECK_NOT_NULL(element.index);
DCHECK_NOT_NULL(element.value);
if (!MayAlias(object, element.object) ||
!MayAlias(index, element.index)) {
!NodeProperties::GetType(index)->Maybe(
NodeProperties::GetType(element.index))) {
that->elements_[that->next_index_++] = element;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment