File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -819,22 +819,22 @@ VPlan::VPlan(Loop *L) {
819819}
820820
821821VPlan::~VPlan () {
822- VPValue DummyValue;
823-
824- for (auto *VPB : CreatedBlocks) {
825- if (auto *VPBB = dyn_cast<VPBasicBlock>(VPB)) {
826- // Replace all operands of recipes and all VPValues defined in VPBB with
827- // DummyValue so the block can be deleted.
828- for (VPRecipeBase &R : *VPBB) {
829- for (auto *Def : R.definedValues ())
830- Def->replaceAllUsesWith (&DummyValue);
831-
832- for (unsigned I = 0 , E = R.getNumOperands (); I != E; I++)
833- R.setOperand (I, &DummyValue);
834- }
822+ VPValue DummyValue;
823+
824+ for (auto *VPB : CreatedBlocks) {
825+ if (auto *VPBB = dyn_cast<VPBasicBlock>(VPB)) {
826+ // Replace all operands of recipes and all VPValues defined in VPBB with
827+ // DummyValue so the block can be deleted.
828+ for (VPRecipeBase &R : *VPBB) {
829+ for (auto *Def : R.definedValues ())
830+ Def->replaceAllUsesWith (&DummyValue);
831+
832+ for (unsigned I = 0 , E = R.getNumOperands (); I != E; I++)
833+ R.setOperand (I, &DummyValue);
835834 }
836- delete VPB;
837835 }
836+ delete VPB;
837+ }
838838 for (VPValue *VPV : VPLiveInsToFree)
839839 delete VPV;
840840 if (BackedgeTakenCount)
You can’t perform that action at this time.
0 commit comments