[PATCH] D13294: LEA code size optimization pass (Part 1): Remove redundant address recalculations

Andrey Turetskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 08:46:24 PDT 2015


aturetsk created this revision.
aturetsk added a reviewer: nadav.
aturetsk added a subscriber: llvm-commits.

Add new x86 pass which replaces address calculations in load or store instructions with LEA def register, if the LEA calculates address that differs only by a displacement. Works only with -Os or -Oz.

http://reviews.llvm.org/D13294

Files:
  lib/Target/X86/CMakeLists.txt
  lib/Target/X86/X86.h
  lib/Target/X86/X86OptimizeLEAs.cpp
  lib/Target/X86/X86TargetMachine.cpp
  test/CodeGen/X86/lea-opt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13294.36112.patch
Type: text/x-patch
Size: 14251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150930/5d8ea0b6/attachment.bin>


More information about the llvm-commits mailing list