[Mem2Reg] Delete unused AllocaPointerVal

It is no longer used after the AliasSetTracker updating logic was removed.

llvm-svn: 358334
This commit is contained in:
Fangrui Song 2019-04-13 15:41:42 +00:00
parent 4dbcc3cf74
commit 8540486974
1 changed files with 0 additions and 4 deletions

View File

@ -113,7 +113,6 @@ struct AllocaInfo {
BasicBlock *OnlyBlock;
bool OnlyUsedInOneBlock;
Value *AllocaPointerVal;
TinyPtrVector<DbgVariableIntrinsic *> DbgDeclares;
void clear() {
@ -122,7 +121,6 @@ struct AllocaInfo {
OnlyStore = nullptr;
OnlyBlock = nullptr;
OnlyUsedInOneBlock = true;
AllocaPointerVal = nullptr;
DbgDeclares.clear();
}
@ -140,14 +138,12 @@ struct AllocaInfo {
if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
// Remember the basic blocks which define new values for the alloca
DefiningBlocks.push_back(SI->getParent());
AllocaPointerVal = SI->getOperand(0);
OnlyStore = SI;
} else {
LoadInst *LI = cast<LoadInst>(User);
// Otherwise it must be a load instruction, keep track of variable
// reads.
UsingBlocks.push_back(LI->getParent());
AllocaPointerVal = LI;
}
if (OnlyUsedInOneBlock) {