From: Clement Courbet Date: Thu, 26 Sep 2019 11:32:44 +0000 (+0000) Subject: [llvm-exegesis][NFC] Remove dead code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efac797a52066fa416f165e3b2e85074ac811e39;p=llvm [llvm-exegesis][NFC] Remove dead code. Summary: `hasAliasingImplicitRegistersThrough()` is no longer used. Reviewers: gchatelet Subscribers: tschuett, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68078 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372968 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-exegesis/lib/MCInstrDescView.cpp b/tools/llvm-exegesis/lib/MCInstrDescView.cpp index de36d5cda0c..3636a1d95fc 100644 --- a/tools/llvm-exegesis/lib/MCInstrDescView.cpp +++ b/tools/llvm-exegesis/lib/MCInstrDescView.cpp @@ -183,12 +183,6 @@ bool Instruction::hasAliasingImplicitRegisters() const { return ImplDefRegs.anyCommon(ImplUseRegs); } -bool Instruction::hasAliasingImplicitRegistersThrough( - const Instruction &OtherInstr) const { - return ImplDefRegs.anyCommon(OtherInstr.ImplUseRegs) && - OtherInstr.ImplDefRegs.anyCommon(ImplUseRegs); -} - bool Instruction::hasAliasingRegistersThrough( const Instruction &OtherInstr) const { return AllDefRegs.anyCommon(OtherInstr.AllUseRegs) && diff --git a/tools/llvm-exegesis/lib/MCInstrDescView.h b/tools/llvm-exegesis/lib/MCInstrDescView.h index b333b92bb0e..09bd1ce67db 100644 --- a/tools/llvm-exegesis/lib/MCInstrDescView.h +++ b/tools/llvm-exegesis/lib/MCInstrDescView.h @@ -114,10 +114,6 @@ struct Instruction { // aliasing Use and Def registers. bool hasAliasingRegisters() const; - // Whether this instruction's implicit registers alias with OtherInstr's - // implicit registers. - bool hasAliasingImplicitRegistersThrough(const Instruction &OtherInstr) const; - // Whether this instruction's registers alias with OtherInstr's registers. bool hasAliasingRegistersThrough(const Instruction &OtherInstr) const;