1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Suppress a warning.

llvm-svn: 160629
This commit is contained in:
Nadav Rotem 2012-07-23 13:44:15 +00:00
parent 7385571bd2
commit 6ade33c7ad

View File

@ -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