[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
Tue Jan 31 11:01:22 PST 2017


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

Revised per Eli's comments. Added new test case.


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.86466.patch
Type: text/x-patch
Size: 10421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170131/d10b6041/attachment.bin>


More information about the llvm-commits mailing list