Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 4d9ce58

Browse files
[EarlyCSE] Address post commit review for r249523.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249814 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 80033cc commit 4d9ce58

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/Transforms/Scalar/EarlyCSE.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ class EarlyCSE {
291291
/// after every possibly writing memory operation, which ensures that we only
292292
/// CSE loads with other loads that have no intervening store.
293293
struct LoadValue {
294-
Value *data;
295-
unsigned generation;
296-
int matchingId;
297-
LoadValue() : data(nullptr), generation(0), matchingId(-1) {}
298-
LoadValue(Value *data, unsigned generation, unsigned matchingId)
299-
: data(data), generation(generation), matchingId(matchingId) {}
294+
Value *Data;
295+
unsigned Generation;
296+
int MatchingId;
297+
LoadValue() : Data(nullptr), Generation(0), MatchingId(-1) {}
298+
LoadValue(Value *Data, unsigned Generation, unsigned MatchingId)
299+
: Data(Data), Generation(Generation), MatchingId(MatchingId) {}
300300
};
301301
typedef RecyclingAllocator<BumpPtrAllocator,
302302
ScopedHashTableVal<Value *, LoadValue>>
@@ -568,12 +568,12 @@ bool EarlyCSE::processNode(DomTreeNode *Node) {
568568
// If we have an available version of this load, and if it is the right
569569
// generation, replace this instruction.
570570
LoadValue InVal = AvailableLoads.lookup(MemInst.getPtr());
571-
if (InVal.data != nullptr && InVal.generation == CurrentGeneration &&
572-
InVal.matchingId == MemInst.getMatchingId()) {
573-
Value *Op = getOrCreateResult(InVal.data, Inst->getType());
571+
if (InVal.Data != nullptr && InVal.Generation == CurrentGeneration &&
572+
InVal.MatchingId == MemInst.getMatchingId()) {
573+
Value *Op = getOrCreateResult(InVal.Data, Inst->getType());
574574
if (Op != nullptr) {
575575
DEBUG(dbgs() << "EarlyCSE CSE LOAD: " << *Inst
576-
<< " to: " << *InVal.data << '\n');
576+
<< " to: " << *InVal.Data << '\n');
577577
if (!Inst->use_empty())
578578
Inst->replaceAllUsesWith(Op);
579579
Inst->eraseFromParent();

0 commit comments

Comments
 (0)