[PATCH] Constant folding around pre-increment loads and stores

Hal Finkel hfinkel at anl.gov
Mon Jan 28 16:40:39 PST 2013


Hello again,

Please review the attached patch which attempts to improve the code generation for pre-increment forms of loads and stores. Currently, even when a pre-increment load or store is generated, we often need to keep a copy of the original base register for use with other offsets. If all of these offsets are constants (including the offset which was combined into the addressing mode), then this is clearly unnecessary. This patch adjusts these other offsets to use the new incremented address.

Thanks again,
Hal

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preinc-consts.patch
Type: text/x-patch
Size: 5756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130128/3280407b/attachment.bin>


More information about the llvm-commits mailing list