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

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


  Branch: refs/heads/inline-lxarx
  Home:   https://github.com/llvm/llvm-project
  Commit: b7df33f4ada9cbfa4ac2bb2b251497dc12e4d648
      https://github.com/llvm/llvm-project/commit/b7df33f4ada9cbfa4ac2bb2b251497dc12e4d648
  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