This is an archive of the discontinued LLVM Phabricator instance.

[BPF] turn on -mattr=+alu32 for cpu version v3 and later
ClosedPublic

Authored by yonghong-song on Nov 7 2019, 11:02 AM.

Details

Summary

-mattr=+alu32 has shown good performance vs. without this attribute.
Based on discussion at

https://lore.kernel.org/bpf/1ec37838-966f-ec0b-5223-ca9b6eb0860d@fb.com/T/#t

cpu version v3 should support -mattr=+alu32.
This patch enabled alu32 if cpu version is v3, either specified by user
or probed by the llvm.

Diff Detail

Event Timeline

yonghong-song created this revision.Nov 7 2019, 11:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2019, 11:02 AM
ast accepted this revision.Nov 7 2019, 2:08 PM
This revision is now accepted and ready to land.Nov 7 2019, 2:08 PM
This revision was automatically updated to reflect the committed changes.