This is an archive of the discontinued LLVM Phabricator instance.

Use correct address space size GEP index in SROA
ClosedPublic

Authored by arsenm on Sep 26 2013, 12:48 PM.

Details

Reviewers
chandlerc

Diff Detail

Event Timeline

See below, only half of this change is necessary.

lib/Transforms/Scalar/SROA.cpp
2024–2026

This change is unnecessary, and doesn't make any sense. The alloca pointer is always in address space zero.

2432

We should test this by wrapping around the end of the address space if we want to be pedantic. Maybe not necessary.

arsenm updated this revision to Unknown Object (????).Dec 12 2013, 1:56 PM

Split out removing default address space argument part, change test to modify one added by the other SROA patch

chandlerc accepted this revision.Feb 26 2014, 2:15 AM

Looks good now that the basis is in place. Inspired a tweak to IRBuilder. I made that tweak and applied in r202252 to avoid you having to rebase, etc.

Thanks!

arsenm closed this revision.Feb 26 2014, 11:53 AM