This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SCF] Place hoisted scf.if->select prior to the remaining if
ClosedPublic

Authored by wsmoses on Mar 18 2022, 12:16 PM.

Details

Summary

This patch slightly updates the behavior of scf.if->select to
place any hoisted select statements prior to the remaining scf.if body.

This allows better composition with other canonicalization passes, such as
scf.if nested merging.

Diff Detail

Event Timeline

wsmoses created this revision.Mar 18 2022, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2022, 12:16 PM
wsmoses requested review of this revision.Mar 18 2022, 12:16 PM
ftynse accepted this revision.Mar 18 2022, 3:55 PM
This revision is now accepted and ready to land.Mar 18 2022, 3:55 PM