Skip to content

Commit e695f4c

Browse files
committed
[CVP] setDeducedOverflowingFlags(): actually inc per-opcode stats
This is really embarrassing. Those are pointers, so that offsets the pointers, not the statistics pointed-by the pointer... llvm-svn: 375290
1 parent e8da5e5 commit e695f4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -457,17 +457,17 @@ static void setDeducedOverflowingFlags(Value *V, Instruction::BinaryOps Opcode,
457457
auto *Inst = dyn_cast<Instruction>(V);
458458
if (NewNSW) {
459459
++NumNW;
460-
++OpcNW;
460+
++*OpcNW;
461461
++NumNSW;
462-
++OpcNSW;
462+
++*OpcNSW;
463463
if (Inst)
464464
Inst->setHasNoSignedWrap();
465465
}
466466
if (NewNUW) {
467467
++NumNW;
468-
++OpcNW;
468+
++*OpcNW;
469469
++NumNUW;
470-
++OpcNUW;
470+
++*OpcNUW;
471471
if (Inst)
472472
Inst->setHasNoUnsignedWrap();
473473
}

0 commit comments

Comments
 (0)