[PATCH] D13294: LEA code size optimization pass (Part 1): Remove redundant address recalculations
Andrey Turetskiy via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 27 08:02:23 PST 2015
aturetsk updated this revision to Diff 41310.
aturetsk added a comment.
Added more tests.
"The size of the displacement exceeds 4-bytes." - this case is the only one remaining uncovered. I wasn't able to force the compiler to use such big address displacement (If address has a big displacement it's stored into a register and than used through it). Not sure if this is possible without changing compiler sources.
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-1.ll
test/CodeGen/X86/lea-opt-2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13294.41310.patch
Type: text/x-patch
Size: 18324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151127/8ee04f13/attachment.bin>
More information about the llvm-commits
mailing list