[llvm-commits] [llvm] r123872 - /llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jan 19 18:43:19 PST 2011
Author: stoklund
Date: Wed Jan 19 20:43:19 2011
New Revision: 123872
URL: http://llvm.org/viewvc/llvm-project?rev=123872&view=rev
Log:
Fix bug found by new clang warning.
Modified:
llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp
Modified: llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp?rev=123872&r1=123871&r2=123872&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp (original)
+++ llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp Wed Jan 19 20:43:19 2011
@@ -226,7 +226,7 @@
// AnticIn[MBB] = UNION(CSRUsed[MBB], AnticOut[MBB]);
CSRegSet prevAnticIn = AnticIn[MBB];
AnticIn[MBB] = CSRUsed[MBB] | AnticOut[MBB];
- if (prevAnticIn |= AnticIn[MBB])
+ if (prevAnticIn != AnticIn[MBB])
changed = true;
return changed;
}
@@ -264,7 +264,7 @@
// AvailOut[MBB] = UNION(CSRUsed[MBB], AvailIn[MBB]);
CSRegSet prevAvailOut = AvailOut[MBB];
AvailOut[MBB] = CSRUsed[MBB] | AvailIn[MBB];
- if (prevAvailOut |= AvailOut[MBB])
+ if (prevAvailOut != AvailOut[MBB])
changed = true;
return changed;
}
More information about the llvm-commits
mailing list