This is an archive of the discontinued LLVM Phabricator instance.

[mlir-tblgen] Fix non-deterministic generating static verifier in DRR.
ClosedPublic

Authored by Chia-hungDuan on Feb 24 2022, 1:15 PM.

Details

Summary

Use SetVector instead of DenseSet to ensure we always generate the same
name for the same function. This issue is found in
https://github.com/llvm/llvm-project/issues/53768.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Feb 24 2022, 1:15 PM
Chia-hungDuan requested review of this revision.Feb 24 2022, 1:15 PM
rdzhabarov accepted this revision.Feb 24 2022, 3:41 PM
This revision is now accepted and ready to land.Feb 24 2022, 3:41 PM
rdzhabarov added inline comments.Feb 24 2022, 3:44 PM
mlir/include/mlir/TableGen/CodeGenHelpers.h
117

Just pass ArrayRef by value (here and other places)

Chia-hungDuan marked an inline comment as done.

Address review comment

Thanks for the review. Will wait for @quinnp's verification

mlir/include/mlir/TableGen/CodeGenHelpers.h
117

Done.

quinnp accepted this revision.Feb 27 2022, 7:54 AM

LGTM. @Chia-hungDuan I've verified that this fixes the issue. Thanks again for implementing this!

This revision was landed with ongoing or failed builds.Feb 28 2022, 10:41 AM
This revision was automatically updated to reflect the committed changes.