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:
f4341e4
)
Suppress a warning.
author
Nadav Rotem
<nadav.rotem@intel.com>
Mon, 23 Jul 2012 13:44:15 +0000
(13:44 +0000)
committer
Nadav Rotem
<nadav.rotem@intel.com>
Mon, 23 Jul 2012 13:44:15 +0000
(13:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160629
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/Reassociate.cpp
b/lib/Transforms/Scalar/Reassociate.cpp
index bcf34b5256802429026aca1c13c87c5b32e4229d..3677630f8c1a2cac5ad2912ab5fa482eeb9ccbd5 100644
(file)
--- a/
lib/Transforms/Scalar/Reassociate.cpp
+++ b/
lib/Transforms/Scalar/Reassociate.cpp
@@
-1581,7
+1581,8
@@
void Reassociate::OptimizeInst(Instruction *I) {
// If this is an interior node of a reassociable tree, ignore it until we
// get to the root of the tree, to avoid N^2 analysis.
- if (BO->hasOneUse() && BO->use_back()->getOpcode() == BO->getOpcode())
+ unsigned Opcode = BO->getOpcode();
+ if (BO->hasOneUse() && BO->use_back()->getOpcode() == Opcode)
return;
// If this is an add tree that is used by a sub instruction, ignore it