summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-31 17:48:31 +0000
committerChris Lattner <sabre@nondot.org>2009-10-31 17:48:31 +0000
commita742b8f94f9fe53fe9cc2ad6fd50c0f5616cad72 (patch)
tree3964792330ec9b0052003beb3d4e2fc4970996eb /llvm/lib/Transforms/Scalar
parent2d02ff8cbb52e60ca104933b9c0159064042def0 (diff)
downloadbcm5719-llvm-a742b8f94f9fe53fe9cc2ad6fd50c0f5616cad72.tar.gz
bcm5719-llvm-a742b8f94f9fe53fe9cc2ad6fd50c0f5616cad72.zip
add a comment.
llvm-svn: 85671
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index c2194c460fd..d1561d68c62 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -10998,6 +10998,10 @@ Instruction *InstCombiner::visitPHINode(PHINode &PN) {
PN.setIncomingValue(i, VB);
PN.setIncomingBlock(j, BBA);
PN.setIncomingValue(j, VA);
+ // NOTE: Instcombine normally would want us to "return &PN" if we
+ // modified any of the operands of an instruction. However, since we
+ // aren't adding or removing uses (just rearranging them) we don't do
+ // this in this case.
}
}
OpenPOWER on IntegriCloud