Page MenuHomePhabricator

[Transforms][SROA] Fixed assertion crash (PR30416)
Needs ReviewPublic

Authored by kbelochapka on Feb 20 2018, 7:33 PM.

Details

Reviewers
luqmana
espindola
Summary

Problem:
In certain situations during ALLOCA promotion, the promoteSingleBlockAlloca() function attempts to replace an instruction by the same instruction. This causes the assertion crash described in PR30416.

Solution:
Disable SROA for a Basic Block that can cause circular dependency.

Diff Detail

Event Timeline

kbelochapka created this revision.Feb 20 2018, 7:33 PM
kbelochapka edited the summary of this revision. (Show Details)

Test?

Added test.

espindola edited reviewers, added: espindola; removed: rafael.Mar 15 2018, 8:35 AM