Index: lib/Target/X86/X86.td =================================================================== --- lib/Target/X86/X86.td +++ lib/Target/X86/X86.td @@ -108,6 +108,10 @@ def FeatureSlowUAMem32 : SubtargetFeature<"slow-unaligned-mem-32", "IsUAMem32Slow", "true", "Slow unaligned 32-byte memory access">; +// TODO: This should be replaced with cost function per processor later +def FeatureFastAVX2Gather : SubtargetFeature<"fast-avx2-gathers", + "HasFastAVX2Gather", "true", + "Has Fast AVX2 Gathers Support">; def FeatureSSE4A : SubtargetFeature<"sse4a", "HasSSE4A", "true", "Support SSE 4a instructions", [FeatureSSE3]>; @@ -568,6 +572,7 @@ def : BroadwellProc<"broadwell">; def SKLFeatures : ProcessorFeatures