We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 887222e commit a243887Copy full SHA for a243887
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -3490,8 +3490,9 @@ Instruction *InstCombinerImpl::visitAllocSite(Instruction &MI) {
3490
replaceInstUsesWith(*I, Result);
3491
eraseInstFromFunction(*I);
3492
Users[i] = nullptr; // Skip examining in the next loop.
3493
+ continue;
3494
}
- if (auto *MTI = dyn_cast<MemTransferInst>(I)) {
3495
+ else if (auto *MTI = dyn_cast<MemTransferInst>(I)) {
3496
if (KnowInitZero && isRefSet(*Removable)) {
3497
IRBuilderBase::InsertPointGuard Guard(Builder);
3498
Builder.SetInsertPoint(MTI);
0 commit comments