[all-commits] [llvm/llvm-project] a18b3c: [PowerPC] Fix L[D|W]ARX Implementation

Conanap via All-commits all-commits at lists.llvm.org
Sun Jul 11 20:00:50 PDT 2021


  Branch: refs/heads/inline-lxarx
  Home:   https://github.com/llvm/llvm-project
  Commit: a18b3c586876ae7bf011705feb0b8756b8063a0f
      https://github.com/llvm/llvm-project/commit/a18b3c586876ae7bf011705feb0b8756b8063a0f
  Author: Albion Fung <albionapc at gmail.com>
  Date:   2021-07-11 (Sun, 11 Jul 2021)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vadd.c
    M clang/test/CodeGen/builtins-ppc-xlcompat-LoadReseve-StoreCond-64bit-only.c
    M clang/test/CodeGen/builtins-ppc-xlcompat-LoadReseve-StoreCond.c
    M llvm/include/llvm/IR/IntrinsicsPowerPC.td
    M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-LoadReserve-StoreCond-64bit-only.ll
    M llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-LoadReserve-StoreCond.ll

  Log Message:
  -----------
  [PowerPC] Fix L[D|W]ARX Implementation

LDARX and LWARX sometimes gets optimized out by the compiler
when it is critical to the correctness of the code. This inline asm generation
ensures that it preserved.

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




More information about the All-commits mailing list