[PATCH] D103660: [ScalarEvolution] Fix pointer/int type handling converting select/phi to min/max.
    Philip Reames via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jun 16 09:11:33 PDT 2021
    
    
  
reames added inline comments.
================
Comment at: llvm/test/Transforms/IndVarSimplify/pr45835.ll:13
 entry:
-  %cmp = icmp ule i8* %c, getelementptr inbounds (i8, i8* @a, i64 65535)
+  %cmp = icmp ule i8* %c, @a
   %add.ptr = getelementptr inbounds i8, i8* %c, i64 -65535
----------------
efriedma wrote:
> reames wrote:
> > Can you explain this test change?
> The select was getting matched as a umax; the current version of the logic can't handle that.
Ok.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103660/new/
https://reviews.llvm.org/D103660
    
    
More information about the llvm-commits
mailing list