add a comment.
authorChris Lattner <sabre@nondot.org>
Sat, 31 Oct 2009 17:48:31 +0000 (17:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 31 Oct 2009 17:48:31 +0000 (17:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85671 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index c2194c460fd2d49cb9322bf9f8063f2e3dc448a9..d1561d68c6218a444b51d7a58bd45f686bd2f8c2 100644 (file)
@@ -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.
       }
     }