[PATCH] D144410: [InstCombine] Support noalias calls in foldAllocaCmp()

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 09:22:00 PST 2023


goldstein.w.n added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:6458
+      if (isNoAliasCall(UO))
+        return isKnownNonZero(UO, Q.DL, /*Depth*/ 0, Q.AC, &I, Q.DT) ||
+               (UO == Op &&
----------------
Maybe cache these in an optional so the second call to `canFold` doesn't need to recompute?


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

https://reviews.llvm.org/D144410



More information about the llvm-commits mailing list