[all-commits] [llvm/llvm-project] 15a719: [X86][MC] Use MCInstrDesc to access CondCode operand

Amir Ayupov via All-commits all-commits at lists.llvm.org
Thu Jun 1 19:00:18 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15a719de01b92da7de4b8381660525b622c2c292
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp

  Log Message:
  [X86][MC] Use MCInstrDesc to access CondCode operand

BOLT may add an extra MCOperand as annotation, making the number of operands in
MCInst different from MCInstrDesc information. A recent change broke our use as
the last operand is no longer a cond code.

Partially revert 287dd0142c08caad5b32628f3842dfd5d5c59d03 to rely on MCInstrDesc
to access CondCode operand.

Reviewed By: skan

Differential Revision: https://reviews.llvm.org/D151930

More information about the All-commits mailing list