[llvm-commits] [llvm] r85671 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Sat Oct 31 10:48:31 PDT 2009


Author: lattner
Date: Sat Oct 31 12:48:31 2009
New Revision: 85671

URL: http://llvm.org/viewvc/llvm-project?rev=85671&view=rev
Log:
add a comment.

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=85671&r1=85670&r2=85671&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Sat Oct 31 12:48:31 2009
@@ -10998,6 +10998,10 @@
         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.
       }
     }
 





More information about the llvm-commits mailing list