diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-10-18 21:19:26 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-10-18 21:19:26 +0000 |
commit | e695f4c851c397d352afa6a9fcd509e68467037d (patch) | |
tree | 57c57b696b3a62715dc58f5e7b4380d484c55642 | |
parent | e8da5e51cd9592145f4dff62281a3fa730aab876 (diff) | |
download | bcm5719-llvm-e695f4c851c397d352afa6a9fcd509e68467037d.tar.gz bcm5719-llvm-e695f4c851c397d352afa6a9fcd509e68467037d.zip |
[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
-rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp index 4ed0f2e16c8..ba16afaa896 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp @@ -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(); } |