From: Misha Brukman Date: Sat, 19 Mar 2005 23:39:50 +0000 (+0000) Subject: Constant-propagate the value of `isL' variable and eliminate it. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=37884fc79e9a55e92ec26574c710c8d3609aa839;p=oota-llvm.git Constant-propagate the value of `isL' variable and eliminate it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20698 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h index 2ca78e4f1a7..0c62cb57db5 100644 --- a/include/llvm/ADT/EquivalenceClasses.h +++ b/include/llvm/ADT/EquivalenceClasses.h @@ -84,8 +84,7 @@ class EquivalenceClasses { 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),