[PATCH] D75555: [GlobalISel][Localizer] Enable intra-block localization of already-local uses.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 11:57:49 PST 2020


aemerson created this revision.
aemerson added a reviewer: paquette.
aemerson added a project: LLVM.
Herald added subscribers: volkan, hiraditya, rovka.
aemerson added a reviewer: arsenm.
Herald added a subscriber: wdng.

This changes the localizer to attempt intra-block localizer of instructions that have local uses. This is useful because sometimes the entry block itself has many uses of constant-like instructions, which would benefit from shortening live ranges. Previously if an inst had no non-local uses, we wouldn't add it to the list of instructions to attempt further intra-block localization.

This gives a 0.7% geomean code size improvement on CTMark.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75555

Files:
  llvm/lib/CodeGen/GlobalISel/Localizer.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/localizer.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75555.247984.patch
Type: text/x-patch
Size: 4774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200303/baaa691d/attachment.bin>


More information about the llvm-commits mailing list