This is an archive of the discontinued LLVM Phabricator instance.

[cfi] Fixed non-determinism in codegen due to DenseSet iteration order
ClosedPublic

Authored by mgrang on Aug 29 2017, 6:08 PM.

Details

Reviewers
eugenis

Diff Detail

Repository
rL LLVM

Event Timeline

mgrang created this revision.Aug 29 2017, 6:08 PM

This will fix the following unit tests which failed in the reverse iteration buildbot (http://lab.llvm.org:8011/builders/reverse-iteration/builds/23/steps/check_all/logs/stdio)

LLVM :: Transforms/CrossDSOCFI/basic.ll
LLVM :: Transforms/CrossDSOCFI/cfi_functions.ll

Do you think using SetVector instead of DenseSet will impact compile-time? The other option we have is to add the TypeIds into a SmallVector and sort it before iteration.

eugenis accepted this revision.Aug 29 2017, 6:21 PM

LGTM, thanks!

This revision is now accepted and ready to land.Aug 29 2017, 6:21 PM
mgrang closed this revision.Aug 29 2017, 9:50 PM