[all-commits] [llvm/llvm-project] 1d6e8e: Adjust bit cast instruction filter for DXIL Prepar...
Joshua Batista via All-commits
all-commits at lists.llvm.org
Thu Jun 5 14:41:36 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1d6e8ec17d547a5f8a0db700dc107a2cd7a321e1
https://github.com/llvm/llvm-project/commit/1d6e8ec17d547a5f8a0db700dc107a2cd7a321e1
Author: Joshua Batista <jbatista at microsoft.com>
Date: 2025-06-05 (Thu, 05 Jun 2025)
Changed paths:
M llvm/lib/Target/DirectX/DXILPrepare.cpp
M llvm/test/CodeGen/DirectX/llc-vector-load-scalarize.ll
A llvm/test/CodeGen/DirectX/noop_bitcast_global_array_type.ll
Log Message:
-----------
Adjust bit cast instruction filter for DXIL Prepare pass (#142678)
This PR addresses a specific edge case when deciding whether or not to
produce a bitcast instruction.
Specifically, when the given instruction is a global array, the element
type of the array wasn't correctly compared to the return type. In this
specific case, if the types are equal, a bitcast shouldn't be created,
but it was.
This PR checks to see if the element type of the array is the same as
the return type, and if it is, it doesn't create a bitcast instruction.
Fixes https://github.com/llvm/llvm-project/issues/139013
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list