This is an archive of the discontinued LLVM Phabricator instance.

InstCombine: Remove dead code
AbandonedPublic

Authored by arsenm on Feb 7 2017, 2:45 PM.

Details

Reviewers
majnemer
Summary

This is checking for a situation which I don't think can happen.
Before this the alignment is already explicitly set, and
non-0 sized allocas are sorted before, so any sized alloca
seen should have already been visited to set the alignment.

Diff Detail

Event Timeline

arsenm created this revision.Feb 7 2017, 2:45 PM
majnemer edited edge metadata.Mar 9 2017, 3:24 PM

This transform would not be correct if InstCombine removed all the allocas and then started introducing some back. We should make transforms resilient to iteration order.

arsenm abandoned this revision.Feb 21 2019, 5:57 PM