mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Rename a few more DataLayout variables from TD to DL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -379,10 +379,10 @@ static OverwriteResult isOverwrite(const AliasAnalysis::Location &Later,
|
||||
// Check to see if the later store is to the entire object (either a global,
|
||||
// an alloca, or a byval/inalloca argument). If so, then it clearly
|
||||
// overwrites any other store to the same object.
|
||||
const DataLayout *TD = AA.getDataLayout();
|
||||
const DataLayout *DL = AA.getDataLayout();
|
||||
|
||||
const Value *UO1 = GetUnderlyingObject(P1, TD),
|
||||
*UO2 = GetUnderlyingObject(P2, TD);
|
||||
const Value *UO1 = GetUnderlyingObject(P1, DL),
|
||||
*UO2 = GetUnderlyingObject(P2, DL);
|
||||
|
||||
// If we can't resolve the same pointers to the same object, then we can't
|
||||
// analyze them at all.
|
||||
@@ -400,8 +400,8 @@ static OverwriteResult isOverwrite(const AliasAnalysis::Location &Later,
|
||||
// pointers are equal, then we can reason about the two stores.
|
||||
EarlierOff = 0;
|
||||
LaterOff = 0;
|
||||
const Value *BP1 = GetPointerBaseWithConstantOffset(P1, EarlierOff, TD);
|
||||
const Value *BP2 = GetPointerBaseWithConstantOffset(P2, LaterOff, TD);
|
||||
const Value *BP1 = GetPointerBaseWithConstantOffset(P1, EarlierOff, DL);
|
||||
const Value *BP2 = GetPointerBaseWithConstantOffset(P2, LaterOff, DL);
|
||||
|
||||
// If the base pointers still differ, we have two completely different stores.
|
||||
if (BP1 != BP2)
|
||||
|
Reference in New Issue
Block a user