[PATCH] D13295: LEA code size optimization pass (Part 2): Remove redundant LEA instructions
Andrey Turetskiy via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 08:50:43 PDT 2015
aturetsk created this revision.
aturetsk added a reviewer: nadav.
aturetsk added a subscriber: llvm-commits.
Make x86 OptimizeLEAs pass remove LEA instruction if there is another LEA which calculates address differing only be a displacement. Works only for -Oz.
http://reviews.llvm.org/D13295
Files:
lib/Target/X86/X86.h
lib/Target/X86/X86OptimizeLEAs.cpp
test/CodeGen/X86/lea-opt.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13295.36113.patch
Type: text/x-patch
Size: 9893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150930/0f479834/attachment.bin>
More information about the llvm-commits
mailing list