From 6ade33c7add4b0df6ebef2168bd42a3c34c70a92 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Mon, 23 Jul 2012 13:44:15 +0000 Subject: [PATCH] Suppress a warning. llvm-svn: 160629 --- lib/Transforms/Scalar/Reassociate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index bcf34b52568..3677630f8c1 100644 --- 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