[all-commits] [llvm/llvm-project] 80e107: Add NoMerge MIFlag to avoid MIR branch folding

ZequanWu via All-commits all-commits at lists.llvm.org
Fri May 29 12:37:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 80e107ccd088a2705d0e776799a8815a58061cb3
      https://github.com/llvm/llvm-project/commit/80e107ccd088a2705d0e776799a8815a58061cb3
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2020-05-29 (Fri, 29 May 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineInstr.h
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/BranchFolding.cpp
    M llvm/lib/CodeGen/MIRPrinter.cpp
    M llvm/lib/CodeGen/MachineInstr.cpp
    M llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/ARM/ARMISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.h
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    A llvm/test/CodeGen/AArch64/nomerge.ll
    A llvm/test/CodeGen/ARM/nomerge.ll
    A llvm/test/CodeGen/PowerPC/nomerge.ll
    A llvm/test/CodeGen/RISCV/nomerge.ll
    A llvm/test/CodeGen/X86/nomerge.ll

  Log Message:
  -----------
  Add NoMerge MIFlag to avoid MIR branch folding

Let the codegen recognized the nomerge attribute and disable branch folding when the attribute is given

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




More information about the All-commits mailing list