[llvm-commits] [llvm] r160629 - /llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp
Nadav Rotem
nadav.rotem at intel.com
Mon Jul 23 06:44:15 PDT 2012
Author: nadav
Date: Mon Jul 23 08:44:15 2012
New Revision: 160629
URL: http://llvm.org/viewvc/llvm-project?rev=160629&view=rev
Log:
Suppress a warning.
Modified:
llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp?rev=160629&r1=160628&r2=160629&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp Mon Jul 23 08:44:15 2012
@@ -1581,7 +1581,8 @@
// 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
More information about the llvm-commits
mailing list