[llvm] r273793 - [RSForGC] Bring meetBDVStateImpl up to code; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 25 21:55:13 PDT 2016
Author: sanjoy
Date: Sat Jun 25 23:55:13 2016
New Revision: 273793
URL: http://llvm.org/viewvc/llvm-project?rev=273793&view=rev
Log:
[RSForGC] Bring meetBDVStateImpl up to code; NFC
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=273793&r1=273792&r2=273793&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Sat Jun 25 23:55:13 2016
@@ -601,29 +601,28 @@ static raw_ostream &operator<<(raw_ostre
}
#endif
-static BDVState meetBDVStateImpl(const BDVState &stateA,
- const BDVState &stateB) {
- switch (stateA.getStatus()) {
+static BDVState meetBDVStateImpl(const BDVState &LHS, const BDVState &RHS) {
+ switch (LHS.getStatus()) {
case BDVState::Unknown:
- return stateB;
+ return RHS;
case BDVState::Base:
- assert(stateA.getBase() && "can't be null");
- if (stateB.isUnknown())
- return stateA;
+ assert(LHS.getBase() && "can't be null");
+ if (RHS.isUnknown())
+ return LHS;
- if (stateB.isBase()) {
- if (stateA.getBase() == stateB.getBase()) {
- assert(stateA == stateB && "equality broken!");
- return stateA;
+ if (RHS.isBase()) {
+ if (LHS.getBase() == RHS.getBase()) {
+ assert(LHS == RHS && "equality broken!");
+ return LHS;
}
return BDVState(BDVState::Conflict);
}
- assert(stateB.isConflict() && "only three states!");
+ assert(RHS.isConflict() && "only three states!");
return BDVState(BDVState::Conflict);
case BDVState::Conflict:
- return stateA;
+ return LHS;
}
llvm_unreachable("only three states!");
}
More information about the llvm-commits
mailing list