[PATCH] [SLSR] handle candidate form (B + i * S)

Jingyue Wu jingyue at google.com
Fri Apr 10 14:27:49 PDT 2015


Hi broune, eliben, hfinkel, meheff, sanjoy,

With this patch, SLSR may rewrite

S1: X = B + i * S
S2: Y = B + i' * S

to

S2: Y = X + (i' - i) * S

http://reviews.llvm.org/D8983

Files:
  lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  test/Transforms/StraightLineStrengthReduce/slsr-add.ll
  test/Transforms/StraightLineStrengthReduce/slsr-mul.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8983.23625.patch
Type: text/x-patch
Size: 8285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150410/4581c804/attachment.bin>


More information about the llvm-commits mailing list