diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index a24d3d454f6..baa6b08fde4 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -1953,7 +1953,7 @@ Instruction *Reassociate::canonicalizeNegConstExpr(Instruction *I) { if (!I->hasOneUse() || I->getType()->isVectorTy()) return nullptr; - // Must be a mul instruction. + // Must be a mul, fmul, or fdiv instruction. unsigned Opcode = I->getOpcode(); if (Opcode != Instruction::Mul && Opcode != Instruction::FMul && Opcode != Instruction::FDiv)