1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

[X86] Set AddPristinesAndCSRs to FixupBW LivePhysRegs. NFC.

We run after PEI, so we need to AddPristinesAndCSRs.
In practice, that makes no difference here, because we only ask about
liveness of super-registers of defined GR8/GR16 registers, so they
can't be pristine. Still, it's the correct thing to do.

Thanks to Quentin for noticing!

Follow-up to r267495.

llvm-svn: 267658
This commit is contained in:
Ahmed Bougacha 2016-04-27 01:51:38 +00:00
parent 156bdb42b3
commit 1b19a8307b

View File

@ -244,7 +244,8 @@ void FixupBWInstPass::processBasicBlock(MachineFunction &MF,
// Start computing liveness for this block. We iterate from the end to be able
// to update this for each instruction.
LiveRegs.clear();
LiveRegs.addLiveOuts(&MBB);
// We run after PEI, so we need to AddPristinesAndCSRs.
LiveRegs.addLiveOuts(&MBB, /*AddPristinesAndCSRs=*/true);
for (auto I = MBB.rbegin(); I != MBB.rend(); ++I) {
MachineInstr *NewMI = nullptr;