This is an archive of the discontinued LLVM Phabricator instance.

[CodeGenPrepare] Refactor optimizeSelectInst (NFC)
ClosedPublic

Authored by chill on Jun 29 2023, 2:01 AM.

Details

Summary

Refactor to use BasicBlockUtils functions and make life easier for
a subsequent patch for updating the dominator tree.

Diff Detail

Event Timeline

chill created this revision.Jun 29 2023, 2:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 2:01 AM
chill requested review of this revision.Jun 29 2023, 2:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 2:01 AM
dmgreen accepted this revision.Jul 18 2023, 12:35 AM

This looks good as far as I can tell. The formatting needs updating a little in places.

llvm/lib/CodeGen/CodeGenPrepare.cpp
7004

Formatting.

7030

Formatting.

This revision is now accepted and ready to land.Jul 18 2023, 12:35 AM
chill updated this revision to Diff 541956.Jul 19 2023, 4:38 AM
chill retitled this revision from [CGP] Refactor optimizeSelectInst (NFC) to [CodeGenPrepare] Refactor optimizeSelectInst (NFC).
chill marked 2 inline comments as done.
This revision was automatically updated to reflect the committed changes.