[all-commits] [llvm/llvm-project] dbf3b5: [InstCombine] fold more shuffles with FP<->Int cas...
Sanjay Patel via All-commits
all-commits at lists.llvm.org
Tue May 17 11:25:30 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dbf3b5f114553e4d5a446cd9ef57e98a8d04354e
https://github.com/llvm/llvm-project/commit/dbf3b5f114553e4d5a446cd9ef57e98a8d04354e
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-05-17 (Tue, 17 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 casts are to a larger element type, the transform
reduces shuffle bit width, so that should be a win for
most codegen (if not, it can be inverted).
More information about the All-commits
mailing list