[PATCH] D28308: [SCEV] Model ashr(shl(x, n), m) as mul(x, 2^(n-m)) when n > m

Z. Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 9 11:48:55 PST 2017


zzheng updated this revision to Diff 91202.
zzheng added a comment.

Removed ashr (X, C) -> sext(truc(udiv(X, 1<<C))) from previous revision.
This is causing a test failure and needs more work. I'd like to do it in another patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D28308

Files:
  lib/Analysis/ScalarEvolution.cpp
  test/Analysis/ScalarEvolution/sext-mul.ll
  test/Analysis/ScalarEvolution/sext-zero.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28308.91202.patch
Type: text/x-patch
Size: 9512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170309/4afe2ca6/attachment.bin>


More information about the llvm-commits mailing list