mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Fix another SROA crasher, PR14601.
This was a silly oversight, we weren't pruning allocas which were used by variable-length memory intrinsics from the set that could be widened and promoted as integers. Fix that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2150,7 +2150,7 @@ static bool isIntegerWideningViable(const DataLayout &TD,
|
||||
!canConvertValue(TD, ValueTy, AllocaTy))
|
||||
return false;
|
||||
} else if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(I->U->getUser())) {
|
||||
if (MI->isVolatile())
|
||||
if (MI->isVolatile() || !isa<Constant>(MI->getLength()))
|
||||
return false;
|
||||
if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(I->U->getUser())) {
|
||||
const AllocaPartitioning::MemTransferOffsets &MTO
|
||||
|
Reference in New Issue
Block a user