From 93c6c18a8592b22eead19a5869a7811f7932789b Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Thu, 19 Jan 2017 21:07:42 +0000 Subject: [SCCP] Update comment in visitBinaryOp() after recent changes. llvm-svn: 292519 --- llvm/lib/Transforms/Scalar/SCCP.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 34be9069248..9c5fa5c1426 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -910,9 +910,10 @@ void SCCPSolver::visitBinaryOperator(Instruction &I) { // Otherwise, one of our operands is overdefined. Try to produce something // better than overdefined with some tricks. - - // If this is an AND or OR with 0 or -1, it doesn't matter that the other - // operand is overdefined. + // If this is: + // -> AND/MUL with 0 + // -> OR with -1 + // it doesn't matter that the other operand is overdefined. if (I.getOpcode() == Instruction::And || I.getOpcode() == Instruction::Mul || I.getOpcode() == Instruction::Or) { LatticeVal *NonOverdefVal = nullptr; -- cgit v1.2.3