[Reassociate] Update comment. NFC.

llvm-svn: 221894
This commit is contained in:
Chad Rosier 2014-11-13 15:40:20 +00:00
parent ec2914e0f0
commit 9074b18785
1 changed files with 1 additions and 1 deletions

View File

@ -1953,7 +1953,7 @@ Instruction *Reassociate::canonicalizeNegConstExpr(Instruction *I) {
if (!I->hasOneUse() || I->getType()->isVectorTy()) if (!I->hasOneUse() || I->getType()->isVectorTy())
return nullptr; return nullptr;
// Must be a mul instruction. // Must be a mul, fmul, or fdiv instruction.
unsigned Opcode = I->getOpcode(); unsigned Opcode = I->getOpcode();
if (Opcode != Instruction::Mul && Opcode != Instruction::FMul && if (Opcode != Instruction::Mul && Opcode != Instruction::FMul &&
Opcode != Instruction::FDiv) Opcode != Instruction::FDiv)