forked from OSchip/llvm-project
Constant-propagate the value of `isL' variable and eliminate it.
llvm-svn: 20698
This commit is contained in:
parent
f4ab9e5965
commit
42f1cfd637
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue