[all-commits] [llvm/llvm-project] 9886f2: [MSP430] Recognize Bi as an indirect branch in ana...

Jay Foad via All-commits all-commits at lists.llvm.org
Wed Sep 29 08:43:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9886f21bc138217b3ca3549bd8bd96d6b70d92f6
      https://github.com/llvm/llvm-project/commit/9886f21bc138217b3ca3549bd8bd96d6b70d92f6
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M llvm/lib/Target/MSP430/MSP430InstrInfo.cpp

  Log Message:
  -----------
  [MSP430] Recognize Bi as an indirect branch in analyzeBranch. NFC.

Recognize Bi as an unconditional branch, just like JMP. This allows
machine verification to run after MSP430BranchSelector without failing
this assertion:

virtual bool llvm::MSP430InstrInfo::analyzeBranch(llvm::MachineBasicBlock &, llvm::MachineBasicBlock *&, llvm::MachineBasicBlock *&, SmallVectorImpl<llvm::MachineOperand> &, bool) const: Assertion `I->getOpcode() == MSP430::JCC && "Invalid conditional branch"' failed.

Note that machine verification is currently disabled after
addPreEmitPass passes because of problems on other targets, so this is
currently NFC.

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




More information about the All-commits mailing list