mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-06 14:57:41 +00:00
SelectionDAG: Remove #if NDEBUG from check for a post-isel hook
The InstrEmitter will skip the check of MI.hasPostISelHook() before calling AdjustInstrPostInstrSelection() when NDEBUG is not defined. This was added in r140228, and I'm not sure if it is intentional or not, but it is a likely source for bugs, because it means with Release+Asserts builds you can forget to set the hasPostISelHook flag on TableGen definitions and AdjustInstrPostInstrSelection() will still be called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
29d48e6a49
commit
bdaf056545
@ -865,9 +865,7 @@ EmitMachineNode(SDNode *Node, bool IsClone, bool IsCloned,
|
||||
MIB->setPhysRegsDeadExcept(UsedRegs, *TRI);
|
||||
|
||||
// Run post-isel target hook to adjust this instruction if needed.
|
||||
#ifdef NDEBUG
|
||||
if (II.hasPostISelHook())
|
||||
#endif
|
||||
TLI->AdjustInstrPostInstrSelection(MIB, Node);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user