mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
tidy up a comment, as suggested by duncan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7010401c6b
commit
396a0567cf
@ -1868,8 +1868,8 @@ bool SROA::isSafeAllocaToScalarRepl(AllocaInst *AI) {
|
|||||||
HasPadding(AI->getAllocatedType(), *TD))
|
HasPadding(AI->getAllocatedType(), *TD))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// If the alloca is never has an access to just *part* of it, but is accessed
|
// If the alloca never has an access to just *part* of it, but is accessed
|
||||||
// with loads and stores, then we should use ConvertToScalarInfo to promote
|
// via loads and stores, then we should use ConvertToScalarInfo to promote
|
||||||
// the alloca instead of promoting each piece at a time and inserting fission
|
// the alloca instead of promoting each piece at a time and inserting fission
|
||||||
// and fusion code.
|
// and fusion code.
|
||||||
if (!Info.hasSubelementAccess && Info.hasALoadOrStore) {
|
if (!Info.hasSubelementAccess && Info.hasALoadOrStore) {
|
||||||
|
Loading…
Reference in New Issue
Block a user