[PATCH] D24280: [IndVarSimplify] Prefer sext over zext when widening IV if it is non-negative and has a GEP user
Li Huang via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 18:14:47 PDT 2016
lihuang added a comment.
InstCombine canonicalizes on zexts when the value is non-negative. I will try canonicalizing on zext and teach getWideRecurrence to return a valid AddRec when the non-negative value is zero-extended.
https://reviews.llvm.org/D24280
More information about the llvm-commits
mailing list