Index: llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp =================================================================== --- llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp +++ llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp @@ -108,11 +108,12 @@ // This can only handle non-void readnone functions. if (CallInst *CI = dyn_cast(Inst)) return CI->doesNotAccessMemory() && !CI->getType()->isVoidTy(); - return isa(Inst) || isa(Inst) || - isa(Inst) || isa(Inst) || - isa(Inst) || isa(Inst) || - isa(Inst) || isa(Inst) || - isa(Inst) || isa(Inst); + return isa(Inst) || isa(Inst) || + isa(Inst) || isa(Inst) || + isa(Inst) || isa(Inst) || + isa(Inst) || isa(Inst) || + isa(Inst) || isa(Inst) || + isa(Inst); } }; @@ -240,7 +241,7 @@ assert((isa(Inst) || isa(Inst) || isa(Inst) || isa(Inst) || - isa(Inst)) && + isa(Inst) || isa(Inst)) && "Invalid/unknown instruction"); // Mix in the opcode. Index: llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll =================================================================== --- llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll +++ llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll @@ -17,9 +17,8 @@ ; CSE unary fnegs. define void @fX(<4 x float> *%p, <4 x float> %a) { ; CHECK: %x = fneg <4 x float> %a - ; CHECK: %y = fneg <4 x float> %a - ; CHECK-NEXT: store volatile <4 x float> %x, <4 x float>* %p - ; CHECK-NEXT: store volatile <4 x float> %y, <4 x float>* %p + ; CHECK-NEXT: store volatile <4 x float> %x, <4 x float>* %p + ; CHECK-NEXT: store volatile <4 x float> %x, <4 x float>* %p %x = fneg <4 x float> %a %y = fneg <4 x float> %a store volatile <4 x float> %x, <4 x float>* %p