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:
9944b76
)
Make sure expressions only have one use before emitting them into a place that is...
author
Chris Lattner
<sabre@nondot.org>
Mon, 22 Aug 2005 00:47:28 +0000
(
00:47
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 22 Aug 2005 00:47:28 +0000
(
00:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22960
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelPattern.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelPattern.cpp
b/lib/Target/PowerPC/PPCISelPattern.cpp
index d70d0f20edfd9fb88303c01cdb976138edfb2f79..51b8927b86fbd5a759ce0a6924b4b0b50e4fab96 100644
(file)
--- a/
lib/Target/PowerPC/PPCISelPattern.cpp
+++ b/
lib/Target/PowerPC/PPCISelPattern.cpp
@@
-1670,9
+1670,10
@@
unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
// If the false value is simple enough, evaluate it inline in the false
// block.
- if (isa<ConstantSDNode>(N.getOperand(3)) ||
- isa<ConstantFPSDNode>(N.getOperand(3)) ||
- isa<GlobalAddressSDNode>(N.getOperand(3)))
+ if (N.getOperand(3).Val->hasOneUse() &&
+ (isa<ConstantSDNode>(N.getOperand(3)) ||
+ isa<ConstantFPSDNode>(N.getOperand(3)) ||
+ isa<GlobalAddressSDNode>(N.getOperand(3))))
FalseValue = 0;
else
FalseValue = SelectExpr(N.getOperand(3));