[llvm] [DAG] Always use stack to promote bitcast when the source is vector (PR #151065)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 2 15:31:45 PDT 2025
================
@@ -2218,7 +2218,8 @@ SDValue DAGTypeLegalizer::PromoteIntOp_BITCAST(SDNode *N) {
switch (getTypeAction(InVT)) {
case TargetLowering::TypePromoteInteger: {
// TODO: Handle big endian
- if (OutVT.isVector() && DAG.getDataLayout().isLittleEndian()) {
+ if (OutVT.isVector() && !InVT.isVector() &&
----------------
mshockwave wrote:
Done.
https://github.com/llvm/llvm-project/pull/151065
More information about the llvm-commits
mailing list