OSDN Git Service

[X86] Change CMPSS/CMPSD intrinsic instructions to use sse_load_f32/f64 as its memory...
authorCraig Topper <craig.topper@gmail.com>
Mon, 12 Dec 2016 07:57:21 +0000 (07:57 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 12 Dec 2016 07:57:21 +0000 (07:57 +0000)
commitd7dfe64614a2dd8dac61bb918dff31df5c104aca
tree48f7be3600064c1a4b15482525557abf180441d1
parent4f6cd5addfecbe0362e96778bddc0eb3d4eb7476
[X86] Change CMPSS/CMPSD intrinsic instructions to use sse_load_f32/f64 as its memory pattern instead of full vector load.

These intrinsics only load a single element. We should use sse_loadf32/f64 to give more options of what loads it can match.

Currently these instructions are often only getting their load folded thanks to the load folding in the peephole pass. I plan to add more types of loads to sse_load_f32/64 so we can match without the peephole.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrSSE.td