This is an archive of the discontinued LLVM Phabricator instance.

[GreedyPatternRewriter] Avoid reversing constant order
ClosedPublic

Authored by rkayaith on May 14 2022, 8:25 PM.

Details

Summary

The previous fix from af371f9f98da only applied when using a bottom-up
traversal. The change here applies the constant preprocessing logic to the
top-down case as well. This resolves the issue with the canonicalizer pass still
reordering constants, since it uses a top-down traversal by default.

Fixes #51892

Diff Detail

Event Timeline

rkayaith created this revision.May 14 2022, 8:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 14 2022, 8:25 PM
rkayaith updated this revision to Diff 429507.May 14 2022, 8:39 PM

use config default as option default

rkayaith published this revision for review.May 14 2022, 8:41 PM
rkayaith added a reviewer: rriddle.

Nice! Can you look into the flang test failures?

rkayaith updated this revision to Diff 429544.May 15 2022, 9:37 AM

fix flang failures

Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2022, 9:37 AM
rriddle accepted this revision.May 15 2022, 2:46 PM
This revision is now accepted and ready to land.May 15 2022, 2:46 PM

Could you land this for me?

This revision was automatically updated to reflect the committed changes.