[PATCH] D65474: [SCEV] Return zero from computeConstantDifference(X, X)

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 4 10:28:59 PDT 2019


sanjoy requested changes to this revision.
sanjoy added a comment.
This revision now requires changes to proceed.

Let's make this a friend function, I'm already not super happy with how wide SCEV's API is.  You can make the `diff` lambda a member function of `ScalarEvolutionsTest` to make this work.

Other than that lgtm.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D65474





More information about the llvm-commits mailing list