diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2014-10-12 10:52:55 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2014-10-12 10:52:55 +0000 |
| commit | 77ac26d27989bd8e949cb4464c6f98a23965516b (patch) | |
| tree | 845d92befdbeeb9c76171a539cb295b2effeb614 /llvm/lib/Bitcode/Reader/BitstreamReader.cpp | |
| parent | 27adb1240f79246ff187d2776bfedf88356b6e42 (diff) | |
| download | llvm-77ac26d27989bd8e949cb4464c6f98a23965516b.zip llvm-77ac26d27989bd8e949cb4464c6f98a23965516b.tar.gz llvm-77ac26d27989bd8e949cb4464c6f98a23965516b.tar.bz2 | |
[X86] Memory folding for commutative instructions.
This patch improves support for commutative instructions in the x86 memory folding implementation by attempting to fold a commuted version of the instruction if the original folding fails - if that folding fails as well the instruction is 're-commuted' back to its original order before returning.
This mainly helps the stack inliner better fold reloads of 3 (or more) operand instructions (VEX encoded SSE etc.) but by performing this in the lowest foldMemoryOperandImpl implementation it also replaces the X86InstrInfo::optimizeLoadInstr version and is now used by FastISel too.
Differential Revision: http://reviews.llvm.org/D5701
llvm-svn: 219584
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions
