[PATCH] D42270: [ValueLattice] Use getters instead of direct accesses (NFC).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 18 16:00:11 PST 2018
fhahn created this revision.
fhahn added reviewers: reames, davide, anna.
Repository:
rL LLVM
https://reviews.llvm.org/D42270
Files:
include/llvm/Analysis/ValueLattice.h
Index: include/llvm/Analysis/ValueLattice.h
===================================================================
--- include/llvm/Analysis/ValueLattice.h
+++ include/llvm/Analysis/ValueLattice.h
@@ -189,14 +189,14 @@
}
if (isConstant()) {
- if (RHS.isConstant() && Val == RHS.Val)
+ if (RHS.isConstant() && getConstant() == RHS.getConstant())
return false;
markOverdefined();
return true;
}
if (isNotConstant()) {
- if (RHS.isNotConstant() && Val == RHS.Val)
+ if (RHS.isNotConstant() && getNotConstant() == RHS.getNotConstant())
return false;
markOverdefined();
return true;
@@ -209,7 +209,7 @@
markOverdefined();
return true;
}
- ConstantRange NewR = Range.unionWith(RHS.getConstantRange());
+ ConstantRange NewR = getConstantRange().unionWith(RHS.getConstantRange());
if (NewR.isFullSet())
markOverdefined();
else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42270.130514.patch
Type: text/x-patch
Size: 948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180119/34248c06/attachment.bin>
More information about the llvm-commits
mailing list