This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Small improvements in FixIrreducibleControlFlow (NFC)
ClosedPublic

Authored by aheejin on Mar 16 2019, 8:13 AM.

Details

Summary
  • Make some class member methods const
  • Delete unnecessary includes
  • Use a simpler form of BuildMI

Diff Detail

Repository
rL LLVM

Event Timeline

aheejin created this revision.Mar 16 2019, 8:13 AM
aheejin retitled this revision from [WebAssembly] Make some class member methods const (NFC) to [WebAssembly] Small improvements in FixIrreducibleControlFlow (NFC).Mar 16 2019, 8:15 AM
aheejin edited the summary of this revision. (Show Details)Mar 16 2019, 8:18 AM
kripken accepted this revision.Mar 18 2019, 12:59 PM

lgtm, nice!

I'm not that familiar with the BuildMI parts though.

This revision is now accepted and ready to land.Mar 18 2019, 12:59 PM

The version of BuildMI I used defaults to add instructions at the end of a basic block, so we don't need to add BB->end() every time.

This revision was automatically updated to reflect the committed changes.