[PATCH] D33902: [X86][SSE] Change memop fragment to inherit from vec128load with local alignment controls
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 03:02:00 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL305184: [X86][SSE] Change memop fragment to inherit from vec128load with local… (authored by RKSimon).
Changed prior to commit:
https://reviews.llvm.org/D33902?vs=101426&id=102165#toc
Repository:
rL LLVM
https://reviews.llvm.org/D33902
Files:
llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td
Index: llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td
+++ llvm/trunk/lib/Target/X86/X86InstrFragmentsSIMD.td
@@ -737,19 +737,15 @@
def alignedloadv8i64 : PatFrag<(ops node:$ptr),
(v8i64 (alignedload512 node:$ptr))>;
-// Like 'load', but uses special alignment checks suitable for use in
+// Like 'vec128load', but uses special alignment checks suitable for use in
// memory operands in most SSE instructions, which are required to
// be naturally aligned on some targets but not on others. If the subtarget
// allows unaligned accesses, match any load, though this may require
// setting a feature bit in the processor (on startup, for example).
// Opteron 10h and later implement such a feature.
-// Avoid non-temporal aligned loads on supported targets.
-def memop : PatFrag<(ops node:$ptr), (load node:$ptr), [{
- return (Subtarget->hasSSEUnalignedMem() ||
- cast<LoadSDNode>(N)->getAlignment() >= 16) &&
- (!Subtarget->hasSSE41() ||
- !(cast<LoadSDNode>(N)->getAlignment() >= 16 &&
- cast<LoadSDNode>(N)->isNonTemporal()));
+def memop : PatFrag<(ops node:$ptr), (vec128load node:$ptr), [{
+ return Subtarget->hasSSEUnalignedMem() ||
+ cast<LoadSDNode>(N)->getAlignment() >= 16;
}]>;
// 128-bit memop pattern fragments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33902.102165.patch
Type: text/x-patch
Size: 1444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170612/b5c49908/attachment.bin>
More information about the llvm-commits
mailing list