[PATCH] D51861: [LSR] Combine unfolded offset into invariant register

Gil Rapaport via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 28 06:03:44 PDT 2018


gilr updated this revision to Diff 171424.
gilr added a comment.

Bug fix: ScalarEvolution::getAddExpr() may modify the vector of SCEVs it is given as argument, causing 2nd formula to be created with only part of the SCEVs in Ops.
This patch fixes this by using a temporary copy of Ops for the 1st formula.


https://reviews.llvm.org/D51861

Files:
  lib/Transforms/Scalar/LoopStrengthReduce.cpp
  test/Transforms/LoopStrengthReduce/AArch64/small-constant.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51861.171424.patch
Type: text/x-patch
Size: 7889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181028/cd6fd17a/attachment.bin>


More information about the llvm-commits mailing list