[PATCH] D11443: Create constant GEP first to allow more LICM.
lawrence at codeaurora.org
Wed Jul 22 18:17:10 PDT 2015
hulx2000 created this revision.
hulx2000 added a subscriber: llvm-commits.
hulx2000 set the repository for this revision to rL LLVM.
Herald added subscribers: srhines, danalbert, tberghammer.
This patch changes the order of GEPs generated by Split GEPs pass,
specially when one of the GEPs has constant and the base is loop
invariant, then we will generate the GEP with constant first when
beneficial, to expose more cases for LICM.
For no-loop cases, the original way of generating GEPs seems to
expose more CSE cases, so we don't change the logic for no-loop
cases, and only limit our change to the specific case we are
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6992 bytes
Desc: not available
More information about the llvm-commits