diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-11-01 23:05:52 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-11-01 23:05:52 +0000 |
commit | bb5c84fb5747ddaf867a5da2ddb6a37a0dbb5dd5 (patch) | |
tree | 945378246ed6dc51ce48c7d67c627e545cdebcda /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 789164d4262b4132e074fadd6e1df8328618e30e (diff) | |
download | bcm5719-llvm-bb5c84fb5747ddaf867a5da2ddb6a37a0dbb5dd5.tar.gz bcm5719-llvm-bb5c84fb5747ddaf867a5da2ddb6a37a0dbb5dd5.zip |
Revert "Correct dwarf unwind information in function epilogue for X86"
This reverts r317100 as it introduced sanitizer-x86_64-linux-autoconf
buildbot failure (build #15606).
llvm-svn: 317136
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 50 |
1 files changed, 4 insertions, 46 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 9137c836caa..bb2dda980e4 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -320,45 +320,8 @@ bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const { } case MachineOperand::MO_MCSymbol: return getMCSymbol() == Other.getMCSymbol(); - case MachineOperand::MO_CFIIndex: { - const MachineFunction *MF = getParent()->getParent()->getParent(); - const MachineFunction *OtherMF = - Other.getParent()->getParent()->getParent(); - MCCFIInstruction Inst = MF->getFrameInstructions()[getCFIIndex()]; - MCCFIInstruction OtherInst = - OtherMF->getFrameInstructions()[Other.getCFIIndex()]; - MCCFIInstruction::OpType op = Inst.getOperation(); - if (op != OtherInst.getOperation()) return false; - switch (op) { - case MCCFIInstruction::OpDefCfa: - case MCCFIInstruction::OpOffset: - case MCCFIInstruction::OpRelOffset: - if (Inst.getRegister() != OtherInst.getRegister()) return false; - if (Inst.getOffset() != OtherInst.getOffset()) return false; - break; - case MCCFIInstruction::OpRestore: - case MCCFIInstruction::OpUndefined: - case MCCFIInstruction::OpSameValue: - case MCCFIInstruction::OpDefCfaRegister: - if (Inst.getRegister() != OtherInst.getRegister()) return false; - break; - case MCCFIInstruction::OpRegister: - if (Inst.getRegister() != OtherInst.getRegister()) return false; - if (Inst.getRegister2() != OtherInst.getRegister2()) return false; - break; - case MCCFIInstruction::OpDefCfaOffset: - case MCCFIInstruction::OpAdjustCfaOffset: - case MCCFIInstruction::OpGnuArgsSize: - if (Inst.getOffset() != OtherInst.getOffset()) return false; - break; - case MCCFIInstruction::OpRememberState: - case MCCFIInstruction::OpRestoreState: - case MCCFIInstruction::OpEscape: - case MCCFIInstruction::OpWindowSave: - break; - } - return true; - } + case MachineOperand::MO_CFIIndex: + return getCFIIndex() == Other.getCFIIndex(); case MachineOperand::MO_Metadata: return getMetadata() == Other.getMetadata(); case MachineOperand::MO_IntrinsicID: @@ -407,13 +370,8 @@ hash_code llvm::hash_value(const MachineOperand &MO) { return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getMetadata()); case MachineOperand::MO_MCSymbol: return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getMCSymbol()); - case MachineOperand::MO_CFIIndex: { - const MachineFunction *MF = MO.getParent()->getParent()->getParent(); - MCCFIInstruction Inst = MF->getFrameInstructions()[MO.getCFIIndex()]; - return hash_combine(MO.getType(), MO.getTargetFlags(), Inst.getOperation(), - Inst.getRegister(), Inst.getRegister2(), - Inst.getOffset()); - } + case MachineOperand::MO_CFIIndex: + return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getCFIIndex()); case MachineOperand::MO_IntrinsicID: return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getIntrinsicID()); case MachineOperand::MO_Predicate: |