[PATCH] D103660: [ScalarEvolution] Fix pointer/int type handling converting select/phi to min/max.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 00:33:44 PDT 2021


efriedma updated this revision to Diff 352357.
efriedma retitled this revision from "[ScalarEvolution] Don't form min/max for pointer-type phi/select." to "[ScalarEvolution] Fix pointer/int type handling converting select/phi to min/max.".
efriedma edited the summary of this revision.
efriedma added a comment.

Switching patch to a version that preserves most of the analysis power, while still avoiding the weird cases.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103660

Files:
  llvm/lib/Analysis/ScalarEvolution.cpp
  llvm/test/Analysis/ScalarEvolution/pr46786.ll
  llvm/test/Transforms/IndVarSimplify/pr45835.ll
  llvm/unittests/Transforms/Utils/ScalarEvolutionExpanderTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103660.352357.patch
Type: text/x-patch
Size: 12103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210616/c8abede5/attachment.bin>


More information about the llvm-commits mailing list