summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-01-19 21:07:42 +0000
committerDavide Italiano <davide@freebsd.org>2017-01-19 21:07:42 +0000
commit93c6c18a8592b22eead19a5869a7811f7932789b (patch)
tree4587befb5fef5d25a448c35350c828bc5adb9971 /llvm/lib/Transforms
parent74f02347ca163e6d7bbd737ec8c3511f4185f7ea (diff)
downloadbcm5719-llvm-93c6c18a8592b22eead19a5869a7811f7932789b.tar.gz
bcm5719-llvm-93c6c18a8592b22eead19a5869a7811f7932789b.zip
[SCCP] Update comment in visitBinaryOp() after recent changes.
llvm-svn: 292519
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp7
1 files changed, 4 insertions, 3 deletions
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;
OpenPOWER on IntegriCloud