[llvm] [MC][X86] Avoid copying MCInst in emitInstrEnd (PR #94947)
    Shengchen Kan via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun 10 19:01:12 PDT 2024
    
    
  
================
@@ -267,8 +268,8 @@ static bool isRIPRelative(const MCInst &MI, const MCInstrInfo &MCII) {
 }
 
 /// Check if the instruction is a prefix.
-static bool isPrefix(const MCInst &MI, const MCInstrInfo &MCII) {
-  return X86II::isPrefix(MCII.get(MI.getOpcode()).TSFlags);
+static bool isPrefix(unsigned Opcode, const MCInstrInfo &MCII) {
----------------
KanRobert wrote:
Not understand why this is better
https://github.com/llvm/llvm-project/pull/94947
    
    
More information about the llvm-commits
mailing list