[PATCH] D94088: [SCEV] Assumption context for GetMinTrailingZeros

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 03:29:43 PST 2021


lebedev.ri added a comment.

I would expect that the SCEV change could be testable with just the scev itselfs (`-analyze -scalar-evolution`), is it not?



================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:5611-5615
+  if (!CxtI) {
+    auto I = MinTrailingZerosCache.find(S);
+    if (I != MinTrailingZerosCache.end())
+      return I->second;
+  }
----------------
Doesn't this defy the point of the cache?
I think `MinTrailingZerosCache`'s key should be changed to be a `std::pair<SCEV*,CxtI*>`


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

https://reviews.llvm.org/D94088



More information about the llvm-commits mailing list