This is an archive of the discontinued LLVM Phabricator instance.

[AVX-512] Make VBMI instruction set enabling imply that the BWI instruction set is also enabled.
ClosedPublic

Authored by craig.topper on Nov 4 2016, 1:47 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper retitled this revision from to [AVX-512] Make VBMI instruction set enabling imply that the BWI instruction set is also enabled..
craig.topper updated this object.
craig.topper added reviewers: delena, zvi.
craig.topper added a subscriber: cfe-commits.
zvi added inline comments.Nov 4 2016, 7:25 PM
lib/Basic/Targets.cpp
3353 ↗(On Diff #76936)

is -> if

test/Preprocessor/x86_target_features.c
212 ↗(On Diff #76936)

Test is turning on and then off the same feature. Did you mean -mavx512bw -mno-avx512vbmi ?

If the latter, I would prefer the compiler shout at me for providing contradicting flags than let the last flag win. Consider enforcing this in handleTargetFeatures().

RKSimon added a subscriber: RKSimon.Nov 4 2016, 8:18 PM
craig.topper added inline comments.Nov 4 2016, 8:52 PM
test/Preprocessor/x86_target_features.c
212 ↗(On Diff #76936)

It was supposed to be -mavx512vbmi -mno-avx512bw to verify that turning off bwi would turn off vbmi. The lack of warning is consistent with the behavior of all the other linked feature flags.

zvi accepted this revision.Nov 4 2016, 9:16 PM
zvi edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 4 2016, 9:16 PM
This revision was automatically updated to reflect the committed changes.