This is an archive of the discontinued LLVM Phabricator instance.

[X86][NFC]Remove dead code in IfConversion.cpp
ClosedPublic

Authored by XinWang10 on Aug 7 2023, 1:42 AM.

Details

Summary

In line 544, if we go in to isFalse, then the Kind could be ICTriangleFalse and isRev must be False, so we never go into the true branch in line 545, better to remove it.

Diff Detail

Event Timeline

XinWang10 created this revision.Aug 7 2023, 1:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 1:42 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
XinWang10 requested review of this revision.Aug 7 2023, 1:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 1:42 AM
XinWang10 edited the summary of this revision. (Show Details)Aug 7 2023, 1:44 AM
XinWang10 added reviewers: skan, pengfei.
skan accepted this revision.Aug 7 2023, 6:39 PM

LGTM

This revision is now accepted and ready to land.Aug 7 2023, 6:39 PM
pengfei accepted this revision.Aug 7 2023, 7:05 PM
pengfei added inline comments.
llvm/lib/CodeGen/IfConversion.cpp
543–549

How about:

XinWang10 updated this revision to Diff 548037.Aug 7 2023, 7:30 PM
  • resolve comment
XinWang10 marked an inline comment as done.Aug 7 2023, 7:31 PM