1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[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
This commit is contained in:
Roman Lebedev 2019-10-18 21:19:26 +00:00
parent 37bfd16fca
commit 46e0f8f422

View File

@ -457,17 +457,17 @@ static void setDeducedOverflowingFlags(Value *V, Instruction::BinaryOps Opcode,
auto *Inst = dyn_cast<Instruction>(V);
if (NewNSW) {
++NumNW;
++OpcNW;
++*OpcNW;
++NumNSW;
++OpcNSW;
++*OpcNSW;
if (Inst)
Inst->setHasNoSignedWrap();
}
if (NewNUW) {
++NumNW;
++OpcNW;
++*OpcNW;
++NumNUW;
++OpcNUW;
++*OpcNUW;
if (Inst)
Inst->setHasNoUnsignedWrap();
}