[all-commits] [llvm/llvm-project] 03e36d: [InstCombine] add tests for fma with shuffled oper...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Wed May 4 08:52:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03e36d8c0ee1e0d535837be595642c3f51643a8c
      https://github.com/llvm/llvm-project/commit/03e36d8c0ee1e0d535837be595642c3f51643a8c
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-05-04 (Wed, 04 May 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/fma.ll

  Log Message:
  -----------
  [InstCombine] add tests for fma with shuffled operands; NFC


  Commit: 9c4770eaab9d95c93b65866e043f571b75d52386
      https://github.com/llvm/llvm-project/commit/9c4770eaab9d95c93b65866e043f571b75d52386
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-05-04 (Wed, 04 May 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/fma.ll

  Log Message:
  -----------
  [InstCombine] move shuffle after fma with same-shuffled operands

https://alive2.llvm.org/ce/z/sD-JVv

This extends 432c199e8473 with a 3 arg intrinsic to demonstrate
that the code works with the extra operand.

Eventually, we will want to use llvm::isTriviallyVectorizable()
or create some new API for this list, but for now, I am intentionally
making a minimum change to reduce risk and only affect an intrinsic
with regression tests in place.


Compare: https://github.com/llvm/llvm-project/compare/e8f7d019fc21...9c4770eaab9d


More information about the All-commits mailing list