This is an archive of the discontinued LLVM Phabricator instance.

[mlir] SCCP add missing pessimistic setting
ClosedPublic

Authored by jpienaar on Jul 24 2022, 7:15 PM.

Details

Summary

When this was updated in D127139 the update in-place case was no longer
marked as pessimistic. Add back in.

Diff Detail

Event Timeline

jpienaar created this revision.Jul 24 2022, 7:15 PM
jpienaar requested review of this revision.Jul 24 2022, 7:15 PM

Is there no test we can add here?

Is there no test we can add here?

Yes we should be able to. My current test case is a larger computation that is producing incorrect results due to folding, and not quite getting to small test case. I'll try some more tomorrow.

jpienaar updated this revision to Diff 447498.Jul 25 2022, 3:37 PM

Add test suggested by Mogball

Mogball accepted this revision.Jul 25 2022, 4:47 PM

Thanks!

mlir/test/Transforms/sccp.mlir
220

nit: can you name this "inplace_fold" or something similar?

This revision is now accepted and ready to land.Jul 25 2022, 4:47 PM
This revision was automatically updated to reflect the committed changes.