[PATCH] D105510: [ScalarEvolution] Strictly enforce pointer/int type rules.
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 8 21:57:33 PDT 2021
mkazantsev added inline comments.
================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:10600
+ if (LHS->getType()->isPointerTy())
+ return false;
----------------
It looks like it filters out such simple case as `(LHS == RHS ) => (RHS== LHS)` (if `LHS = FoundRHS` and `RHS = FoundLHS`). Could you please add a unit test to ensure it's not broken with this patch?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105510/new/
https://reviews.llvm.org/D105510
More information about the llvm-commits
mailing list