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

Conanap via All-commits all-commits at lists.llvm.org
Sat Jul 10 14:21:51 PDT 2021


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

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    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