[all-commits] [llvm/llvm-project] 5d19fe: [PowerPC] Fix strict load-conversion recognition

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Tue Nov 15 18:02:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d19fea81fc2352100916e04e45adf5650b113f6
      https://github.com/llvm/llvm-project/commit/5d19fea81fc2352100916e04e45adf5650b113f6
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/fp-strict-conv.ll

  Log Message:
  -----------
  [PowerPC] Fix strict load-conversion recognition

Direct-move instructions are usually more efficient than load then store
for conversion. But direct moves are not needed when the source register
was just loaded from some address.

The pattern has already been recognized, but the source value of strict
nodes are not the first (that's the chain), but the second.

Reviewed By: shchenz

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




More information about the All-commits mailing list