This is an archive of the discontinued LLVM Phabricator instance.

[LoopFusion] Exit early if one of fusion candidate has guarded branch but the another has not
ClosedPublic

Authored by StephenFan on Nov 18 2022, 12:15 AM.

Diff Detail

Event Timeline

StephenFan created this revision.Nov 18 2022, 12:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2022, 12:15 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.Nov 18 2022, 12:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2022, 12:15 AM
nikic added inline comments.Dec 8 2022, 7:21 AM
llvm/test/Transforms/LoopFusion/guarded.ll
70

Please precommit the test regeneration.

Pre-commit test check regeneration.

nikic accepted this revision.Dec 15 2022, 12:24 AM

Not familiar with this pass, but it looks reasonable.

llvm/lib/Transforms/Scalar/LoopFuse.cpp
899–902

nit: I'd prefer doing a (bool) cast or something, the ! != ! is pretty weird.

This revision is now accepted and ready to land.Dec 15 2022, 12:24 AM