This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Add aarch64 support for peephole passes
ClosedPublic

Authored by yota9 on Feb 1 2022, 1:04 PM.

Details

Summary

Enable peephole optimizations for aarch64.
Also small code refactoring - add PeepholeOpts under Peepholes class.

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

Diff Detail

Event Timeline

yota9 created this revision.Feb 1 2022, 1:04 PM
yota9 requested review of this revision.Feb 1 2022, 1:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2022, 1:04 PM
yota9 updated this revision to Diff 405074.Feb 1 2022, 1:06 PM

Revert a bit of old patch

tschuett added inline comments.
bolt/include/bolt/Passes/BinaryPasses.h
299

Do you want to change this into ènum class?

yota9 added inline comments.Feb 1 2022, 1:13 PM
bolt/include/bolt/Passes/BinaryPasses.h
299

To be honest I don't mind, but also I'm not sure if it is needed, it feels a bit redundant on my taste..

rafauler added inline comments.Feb 2 2022, 7:15 AM
bolt/lib/Passes/BinaryPasses.cpp
110

I'm not sure if this first character that phabricator is displaying here means there is a \t character in the source code. If there is, you should configure your editor to do not insert tabs and use only whitespaces (as per https://llvm.org/docs/CodingStandards.html#id18).

1093

Removed this line by accident?

yota9 marked an inline comment as done.Feb 2 2022, 7:17 AM
yota9 added inline comments.
bolt/lib/Passes/BinaryPasses.cpp
1093

Yes, thanks! Did not notice that :)

yota9 updated this revision to Diff 405258.Feb 2 2022, 7:17 AM
yota9 marked an inline comment as done.

New line

yota9 marked an inline comment as done.Feb 2 2022, 7:28 AM
yota9 added inline comments.
bolt/lib/Passes/BinaryPasses.cpp
110

First time I saw that I was thinking it is tab too, but it's just space, idented by clang-format

yota9 marked an inline comment as done.Feb 4 2022, 2:38 PM

Gentle ping to reviewers

rafauler accepted this revision.Feb 7 2022, 3:44 PM

LGTM. Please re-submit this to re-run the pre-merge check that failed, as it is now fixed.

This revision is now accepted and ready to land.Feb 7 2022, 3:44 PM
yota9 updated this revision to Diff 406639.Feb 7 2022, 3:51 PM

Sure, @rafauler, thanks. Rebased.

This revision was automatically updated to reflect the committed changes.