projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
438b583
)
add a comment.
author
Chris Lattner
<sabre@nondot.org>
Sat, 31 Oct 2009 17:48:31 +0000
(17:48 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index c2194c460fd2d49cb9322bf9f8063f2e3dc448a9..d1561d68c6218a444b51d7a58bd45f686bd2f8c2 100644
(file)
--- 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.
}
}