[all-commits] [llvm/llvm-project] 082fa5: [ARM] Fix MOVCC peephole to not use an incorrect r...

john-brawn-arm via All-commits all-commits at lists.llvm.org
Fri Oct 15 02:55:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 082fa56819048770e76fef8bca4ea5de3c3532ba
      https://github.com/llvm/llvm-project/commit/082fa56819048770e76fef8bca4ea5de3c3532ba
  Author: John Brawn <john.brawn at arm.com>
  Date:   2021-10-15 (Fri, 15 Oct 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
    A llvm/test/CodeGen/ARM/movc-peephole.mir

  Log Message:
  -----------
  [ARM] Fix MOVCC peephole to not use an incorrect register class

The MOVCC peephole eliminates a MOVCC by making one of its inputs a
conditional instruction, but when doing this it should be using both
inputs of the MOVCC to decide on the register class to use as
otherwise we can get an error when using -verify-machineinstrs.

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




More information about the All-commits mailing list