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.
Details
Details
- Reviewers
majnemer
Diff Detail
Diff Detail
Event Timeline
Comment Actions
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.