[all-commits] [llvm/llvm-project] deb765: [PowerPC] Fix PPCVSXSwapRemoval pass to include MT...

Quinn Pham via All-commits all-commits at lists.llvm.org
Fri Jun 17 08:14:37 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: deb7655209a7d74257b651ade97bfc63043174ec
  Author: Quinn Pham <Quinn.Pham at ibm.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
    A llvm/test/CodeGen/PowerPC/mtvsrc-mfvscr-PPCVSXSwapRemoval.ll

  Log Message:
  [PowerPC] Fix PPCVSXSwapRemoval pass to include MTVSCR and MFVSCR as not swappable.

This patch adds the instructions `MTVSCR` and `MFVSCR` as not swappable to the
PPCVSXSwapRemoval pass because they are not lane-insensitive. This will prevent
the compiler from optimizing out required swaps when using `lxvd2x` and

Reviewed By: #powerpc, nemanjai

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

More information about the All-commits mailing list