mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-23 16:31:20 +00:00
[SROA] Use the original load name with the SROA-prefixed IRB rather than
just "load". This helps avoid pointless de-duping with order-sensitive numbers as we already have unique names from the original load. It also makes the resulting IR quite a bit easier to read. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f5701e4282
commit
a2ff58121a
@ -2164,13 +2164,13 @@ private:
|
||||
} else if (NewBeginOffset == NewAllocaBeginOffset &&
|
||||
canConvertValue(DL, NewAllocaTy, LI.getType())) {
|
||||
V = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(),
|
||||
LI.isVolatile(), "load");
|
||||
LI.isVolatile(), LI.getName());
|
||||
} else {
|
||||
Type *LTy = TargetTy->getPointerTo();
|
||||
V = IRB.CreateAlignedLoad(
|
||||
getAdjustedAllocaPtr(IRB, NewBeginOffset, LTy),
|
||||
getOffsetTypeAlign(TargetTy, NewBeginOffset - NewAllocaBeginOffset),
|
||||
LI.isVolatile(), "load");
|
||||
LI.isVolatile(), LI.getName());
|
||||
IsPtrAdjusted = true;
|
||||
}
|
||||
V = convertValue(DL, IRB, V, TargetTy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user