This is an archive of the discontinued LLVM Phabricator instance.

[SelectDagISEL] refactor HandlePHINodesInSuccessorBlocks NFC.
ClosedPublic

Authored by nickdesaulniers on Nov 4 2022, 10:02 AM.

Details

Summary

While working on this code to support outputs from callbr along indirect
branches, I kept making these changes again and again. Precommit these.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 10:02 AM
nickdesaulniers requested review of this revision.Nov 4 2022, 10:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 10:02 AM
arsenm added a subscriber: arsenm.Nov 4 2022, 10:03 AM
arsenm added inline comments.
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
10876–10878

Can drop the &

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
10876–10878

Aren't EVTs larger than the word size? Isn't it cheaper to take by ref to avoid a copy?

craig.topper added inline comments.Nov 4 2022, 11:51 AM
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
10876–10878

It's an int and a pointer. It's going to get copied to pass by value to getNumRegisters anyway.

  • drop reference
nickdesaulniers marked 2 inline comments as done.Nov 4 2022, 12:55 PM
This revision is now accepted and ready to land.Nov 4 2022, 1:01 PM
This revision was landed with ongoing or failed builds.Nov 10 2022, 2:34 PM
This revision was automatically updated to reflect the committed changes.