mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Add an isSSA() flag to MachineRegisterInfo.
This flag is true from isel to register allocation when the machine function is required to be in SSA form. The TwoAddressInstructionPass and PHIElimination passes clear the flag. The SSA flag wil be used by the machine code verifier to check for SSA form, and eventually an assertion can enforce it in +Asserts builds. This will catch the common target error of creating machine code with multiple defs of a virtual register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136532 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1041,6 +1041,9 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
|
||||
DEBUG(dbgs() << "********** Function: "
|
||||
<< MF.getFunction()->getName() << '\n');
|
||||
|
||||
// This pass takes the function out of SSA form.
|
||||
MRI->leaveSSA();
|
||||
|
||||
// ReMatRegs - Keep track of the registers whose def's are remat'ed.
|
||||
BitVector ReMatRegs(MRI->getNumVirtRegs());
|
||||
|
||||
|
Reference in New Issue
Block a user