[llvm-commits] CVS: llvm/include/llvm/ADT/EquivalenceClasses.h
Misha Brukman
brukman at cs.uiuc.edu
Sat Mar 19 15:40:01 PST 2005
Changes in directory llvm/include/llvm/ADT:
EquivalenceClasses.h updated: 1.13 -> 1.14
---
Log message:
Constant-propagate the value of `isL' variable and eliminate it.
---
Diffs of the changes: (+1 -2)
EquivalenceClasses.h | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/include/llvm/ADT/EquivalenceClasses.h
diff -u llvm/include/llvm/ADT/EquivalenceClasses.h:1.13 llvm/include/llvm/ADT/EquivalenceClasses.h:1.14
--- llvm/include/llvm/ADT/EquivalenceClasses.h:1.13 Sat Mar 19 16:36:39 2005
+++ llvm/include/llvm/ADT/EquivalenceClasses.h Sat Mar 19 17:39:50 2005
@@ -84,8 +84,7 @@
void setNext(const ECValue *NewNext) const {
assert(getNext() == 0 && "Already has a next pointer!");
- bool isL = isLeader();
- Next = (const ECValue*)((intptr_t)NewNext | (intptr_t)isL);
+ Next = (const ECValue*)((intptr_t)NewNext | (intptr_t)isLeader());
}
public:
ECValue(const ECValue &RHS) : Leader(this), Next((ECValue*)(intptr_t)1),
More information about the llvm-commits
mailing list