[PATCH] [X86] Memory folding for commutative instructions.
Simon Pilgrim
llvm-dev at redking.me.uk
Thu Oct 9 11:29:06 PDT 2014
Tidied up check for commutative instructions - we can avoid isCommutable and use findCommutedOpIndices directly and then fold anything that is commutable under certain cases (e.g. FMA instructions).
Added the missing test case.
http://reviews.llvm.org/D5701
Files:
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/X86/avx1-stack-reload-folding.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5701.14665.patch
Type: text/x-patch
Size: 7094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141009/2301ad02/attachment.bin>
More information about the llvm-commits
mailing list