Skip to content

Commit

Permalink
[X86] Remove getSETOpc (NFC)
Browse files Browse the repository at this point in the history
This function seems to be unused for at least one year.
  • Loading branch information
kazutakahirata committed Oct 27, 2021
1 parent e6b6190 commit 593451b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions llvm/lib/Target/X86/X86InstrInfo.cpp
Expand Up @@ -2868,11 +2868,6 @@ X86::getX86ConditionCode(CmpInst::Predicate Predicate) {
return std::make_pair(CC, NeedSwap);
}

/// Return a setcc opcode based on whether it has memory operand.
unsigned X86::getSETOpc(bool HasMemoryOperand) {
return HasMemoryOperand ? X86::SETCCr : X86::SETCCm;
}

/// Return a cmov opcode for the given register size in bytes, and operand type.
unsigned X86::getCMovOpcode(unsigned RegBytes, bool HasMemoryOperand) {
switch(RegBytes) {
Expand Down
3 changes: 0 additions & 3 deletions llvm/lib/Target/X86/X86InstrInfo.h
Expand Up @@ -37,9 +37,6 @@ enum AsmComments {
/// the instruction operands should be swaped to match the condition code.
std::pair<CondCode, bool> getX86ConditionCode(CmpInst::Predicate Predicate);

/// Return a setcc opcode based on whether it has a memory operand.
unsigned getSETOpc(bool HasMemoryOperand = false);

/// Return a cmov opcode for the given register size in bytes, and operand type.
unsigned getCMovOpcode(unsigned RegBytes, bool HasMemoryOperand = false);

Expand Down

0 comments on commit 593451b

Please sign in to comment.