This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Thumb2CondExecution. NFC
ClosedPublic

Authored by SjoerdMeijer on Jun 17 2019, 5:22 AM.

Details

Summary

Some more refactoring, like registering the IT Block pass, less cryptic
variable names, and some simplification of loops.

This depends on D63418.

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer created this revision.Jun 17 2019, 5:22 AM
samparker accepted this revision.Jun 17 2019, 6:34 AM

LGTM

llvm/lib/Target/ARM/Thumb2CondExecution.cpp
194 ↗(On Diff #205043)

Just a bike shedding nit... MBB is the defacto variable name for a MachineBasicBlock.. and the same for the iterator names.

This revision is now accepted and ready to land.Jun 17 2019, 6:34 AM
SjoerdMeijer marked 2 inline comments as done.Jun 17 2019, 7:12 AM
SjoerdMeijer added inline comments.
llvm/lib/Target/ARM/Thumb2CondExecution.cpp
103 ↗(On Diff #205043)

Oopsy daisy: 'Uses' is wrong here, which I will fix.
This passed tests, indicating some tests are missing here...

109 ↗(On Diff #205043)

I accidentally cleaned this up, i.e. didn't notice it. But it turns out I was lucky: this if and continue doesn't make any sense.

194 ↗(On Diff #205043)

In general I like short variable names, but here all permutations MI, MIB, MBBI, MBB, NMI got a bit too much for me. But as I don't plan to touch this part, I will revert these changes.

just uploading the diff that I want to commit.

This revision was automatically updated to reflect the committed changes.