aboutsummaryrefslogtreecommitdiff
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
commit28f3d34a9bf9060b68abef97845cf89bc6e2c403 (patch)
treed6729cae8d03a2f6e35e92264db908dd30d5d3e5
parent438b583dbd20f63b70d0b5abb7780a50bf03dd83 (diff)
add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85671 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index c2194c460f..d1561d68c6 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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.
}
}