DAG: Avoid stack lowering if bitcast has an illegal vector result type
A bitcast of <10 x i32> to <5 x i64> was ending up on the stack. Instead of doing that, handle the case where the new type doesn't evenly divide but the elements do. Extract the individual elements and pad with undef. Avoids stack usage for bitcasts involving <5 x i64>. In some of these cases, later optimizations actually eliminated the stack objects but left behind the unused temporary stack object to final emission. Fixes: SWDEV-377548
Loading
Please sign in to comment