mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 23:25:06 +00:00
DBG_VALUE does not have any side effects; it also makes no sense to mark it cheap as a copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -336,7 +336,9 @@ bool PeepholeOptimizer::runOnMachineFunction(MachineFunction &MF) {
|
||||
MachineInstr *MI = &*MII++;
|
||||
LocalMIs.insert(MI);
|
||||
|
||||
if (MI->getDesc().hasUnmodeledSideEffects())
|
||||
if (MI->isLabel() || MI->isPHI() || MI->isImplicitDef() ||
|
||||
MI->isKill() || MI->isInlineAsm() || MI->isDebugValue() ||
|
||||
MI->getDesc().hasUnmodeledSideEffects())
|
||||
continue;
|
||||
|
||||
if (MI->getDesc().isCompare()) {
|
||||
|
Reference in New Issue
Block a user