[PATCH] D18001: [LSR] Create fewer redundant instructions.

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 10:39:15 PST 2016


gberry created this revision.
gberry added a reviewer: atrick.
gberry added a subscriber: llvm-commits.
Herald added subscribers: mzolotukhin, mcrosier.

Fix LSRInstance::HoistInsertPosition() to check the original insert
position block first for a canonical insertion point that is dominated
by all inputs.  This leads to SCEV being able to reuse more instructions
since it currently tracks the instructions it creates for reuse by
keeping a table of <Value, insert point> pairs.

http://reviews.llvm.org/D18001

Files:
  lib/Transforms/Scalar/LoopStrengthReduce.cpp
  test/Transforms/LoopStrengthReduce/AArch64/lsr-reuse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18001.50158.patch
Type: text/x-patch
Size: 3831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160309/4b2d3061/attachment.bin>


More information about the llvm-commits mailing list