diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-02-25 11:21:48 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-02-25 11:21:48 +0000 |
| commit | 25adb7b00ca1e8d2913b69f23f32610d87dafb1a (patch) | |
| tree | 6eda1338b2c9c8aff394aad5ae8a1854d1d44c9e /llvm/lib/Transforms | |
| parent | cb93cd2dc99ea8a13ee2fe6572b4729145cfa633 (diff) | |
| download | bcm5719-llvm-25adb7b00ca1e8d2913b69f23f32610d87dafb1a.tar.gz bcm5719-llvm-25adb7b00ca1e8d2913b69f23f32610d87dafb1a.zip | |
[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.
llvm-svn: 202140
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SROA.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index 33f7e1582ca..298e9af0326 100644 --- a/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/llvm/lib/Transforms/Scalar/SROA.cpp @@ -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); |

