diff options
| author | Nadav Rotem <nadav.rotem@intel.com> | 2012-07-23 13:44:15 +0000 | 
|---|---|---|
| committer | Nadav Rotem <nadav.rotem@intel.com> | 2012-07-23 13:44:15 +0000 | 
| commit | 1088811c332fac6a1cba83682f80732394149299 (patch) | |
| tree | 7bae20b5e993f85807f063d7bd818c6a8b8dbcd6 /llvm/lib/Transforms/Scalar | |
| parent | 49b52efab10cf09019db9916e1655d86e5053b91 (diff) | |
| download | bcm5719-llvm-1088811c332fac6a1cba83682f80732394149299.tar.gz bcm5719-llvm-1088811c332fac6a1cba83682f80732394149299.zip  | |
Suppress a warning.
llvm-svn: 160629
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index bcf34b52568..3677630f8c1 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/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  | 

