[PATCH] D68740: [NFC][CVP] Count all the no-wraps we prooved

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 05:36:12 PDT 2019


lebedev.ri marked 2 inline comments as done.
lebedev.ri added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp:433-436
+  if (auto *Inst = dyn_cast<Instruction>(V)) {
+    if (NewNSW) {
+      ++NumNW;
+      ++NumNSW;
----------------
Oh, this is what was irking me.
We should increment those stats regardless of whether `Inst` is `null` or not.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68740/new/

https://reviews.llvm.org/D68740





More information about the llvm-commits mailing list