This is an archive of the discontinued LLVM Phabricator instance.

[NFC] check for UnreachableInst first as it is cheaper compared to getTerminatingDeoptimizeCall
ClosedPublic

Authored by hiraditya on Sep 22 2022, 3:34 PM.

Diff Detail

Event Timeline

hiraditya created this revision.Sep 22 2022, 3:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 3:34 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
hiraditya requested review of this revision.Sep 22 2022, 3:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 3:34 PM
aeubanks accepted this revision.Sep 22 2022, 3:38 PM
This revision is now accepted and ready to land.Sep 22 2022, 3:38 PM
Peter added a subscriber: Peter.Oct 25 2022, 6:15 PM
Peter added inline comments.
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
603–604

Are we bitwise or two pointers of different type or is the parentheses wrong?

Peter requested changes to this revision.Oct 31 2022, 8:35 PM
This revision now requires changes to proceed.Oct 31 2022, 8:35 PM
hiraditya updated this revision to Diff 511541.Apr 6 2023, 3:02 PM

Fixed a typo and ran check-llvm

hiraditya marked an inline comment as done.Apr 6 2023, 3:02 PM
hiraditya added inline comments.
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
603–604

fixed. thanks for pointing it out.

hiraditya marked an inline comment as done.Apr 12 2023, 9:14 AM

ping: @Peter

It seems clang-format failed. Can you fix that?
git-clang-format returned an non-zero exit code 1

clang-format

Peter accepted this revision.Apr 27 2023, 10:12 PM
This revision is now accepted and ready to land.Apr 27 2023, 10:12 PM