[all-commits] [llvm/llvm-project] 05527b: [InstCombine] fold more shuffles with FP<->Int cas...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Tue May 24 12:24:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05527b68a0be19fe49b884f3b22195701dc4b46f
      https://github.com/llvm/llvm-project/commit/05527b68a0be19fe49b884f3b22195701dc4b46f
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
    M llvm/test/Transforms/InstCombine/vec_shuffle.ll

  Log Message:
  -----------
  [InstCombine] fold more shuffles with FP<->Int cast operands

shuffle (cast X), (cast Y), Mask --> cast (shuffle X, Y, Mask)

This extends the transform added with 0353c2c996c5.

If the shuffle reduces vector length, the transform
reduces the width of the cast, so that should be a
win for most codegen (if not, it can be inverted).




More information about the All-commits mailing list