[all-commits] [llvm/llvm-project] ad2f7f: [AtomicExpand] Make floating point conversion happ...

bzEq via All-commits all-commits at lists.llvm.org
Tue Aug 30 18:55:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad2f7fd286f15b6ff10f35bc3a9e069e48fb98de
      https://github.com/llvm/llvm-project/commit/ad2f7fd286f15b6ff10f35bc3a9e069e48fb98de
  Author: Kai Luo <lkail at cn.ibm.com>
  Date:   2022-08-31 (Wed, 31 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/AtomicExpandPass.cpp
    M llvm/test/CodeGen/PowerPC/cfence-double.ll
    M llvm/test/CodeGen/PowerPC/cfence-float.ll
    M llvm/test/Transforms/AtomicExpand/PowerPC/cfence-double.ll
    M llvm/test/Transforms/AtomicExpand/PowerPC/cfence-float.ll

  Log Message:
  -----------
  [AtomicExpand] Make floating point conversion happens before fence insertion

IIUC, the conversion part is not part of atomic operations and fences should be put around converted atomic operations.
This also fixes atomic load of floating point values which requires fence on PowerPC.

Reviewed By: efriedma

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




More information about the All-commits mailing list