mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Invalidate liveness in Thumb2ITBlockPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
77d9521945
commit
33fa614b16
@ -15,6 +15,7 @@
|
||||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||
#include "llvm/CodeGen/MachineInstrBundle.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
using namespace llvm;
|
||||
@ -258,6 +259,9 @@ bool Thumb2ITBlockPass::runOnMachineFunction(MachineFunction &Fn) {
|
||||
if (!AFI->isThumbFunction())
|
||||
return false;
|
||||
|
||||
// IT block insertion invalidates accurate register liveness.
|
||||
Fn.getRegInfo().invalidateLiveness();
|
||||
|
||||
bool Modified = false;
|
||||
for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; ) {
|
||||
MachineBasicBlock &MBB = *MFI;
|
||||
|
Loading…
Reference in New Issue
Block a user