This is an archive of the discontinued LLVM Phabricator instance.

[X86] Introduce a new td file to hold patterns some of the non instruction patterns from SSE and AVX512
ClosedPublic

Authored by craig.topper on Sep 4 2017, 6:06 PM.

Details

Summary

This patch moves some of similar non-instruction patterns from X86InstrSSE.td and X86InstrAVX512.td to a common file.

This is intended as a starting point. There are many other optimization patterns that exist in both files that we could move here.

Diff Detail

Event Timeline

aymanmus edited edge metadata.Sep 5 2017, 1:31 AM

Why introduce new file instead of copying to X86InstrCompiler.td?

lib/Target/X86/X86InstrSSE.td
321–322

Remove comment please

I created a new file because X86InstrCompiler.td is already 2000 lines long. There are still more things I want to move to the new file. So I was just trying to keep things manageable.

Remove leftover comment

This revision is now accepted and ready to land.Sep 6 2017, 12:50 AM
This revision was automatically updated to reflect the committed changes.