[PATCH] D90637: [ValueTracking] Inbounds does not imply nsw

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 13:49:46 PST 2020


lebedev.ri added a comment.

After actually re-reading D68342 <https://reviews.llvm.org/D68342>, i agree.
Does accumulating the offset and then applying the total offset lead to precision loss?



================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:1432
       }
       IndexBits = KnownBits::computeForMul(IndexBits, ScalingFactor);
 
----------------
Presumably NSW should be here?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90637



More information about the llvm-commits mailing list