LargeTypesReg2Mem: Add unchecked_bitwise_cast to the projections we need to propagate largeness from destination to source operand

rdar://148545382
This commit is contained in:
Arnold Schwaighofer
2025-04-17 09:11:37 -07:00
parent f472d9991a
commit 370b7e8219
2 changed files with 21 additions and 0 deletions

View File

@@ -3574,6 +3574,7 @@ void LargeLoadableHeuristic::propagate(PostOrderFunctionInfo &po) {
for (auto *BB : po.getPostOrder()) {
for (auto &I : llvm::reverse(*BB)) {
switch (I.getKind()) {
case SILInstructionKind::UncheckedBitwiseCastInst:
case SILInstructionKind::TupleExtractInst:
case SILInstructionKind::StructExtractInst: {
auto &proj = cast<SingleValueInstruction>(I);