mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-24 03:25:00 +00:00
Fix bug found by new clang warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3385811aa
commit
b7683c06cb
@ -226,7 +226,7 @@ bool PEI::calcAnticInOut(MachineBasicBlock* MBB) {
|
||||
// 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 @@ bool PEI::calcAvailInOut(MachineBasicBlock* MBB) {
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user