diff options
| author | Julien Lerouge <jlerouge@apple.com> | 2015-01-13 19:45:52 +0000 |
|---|---|---|
| committer | Julien Lerouge <jlerouge@apple.com> | 2015-01-13 19:45:52 +0000 |
| commit | 0473cb5ab75c5ddf51290d7e5299c0c64d13312f (patch) | |
| tree | 8f35948e400bbd67584cd9a8f25f0d6a798f8b64 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | bd039299c069ad5459410882382432f6d70eb2b0 (diff) | |
Fix non-determinism issue in SLP
The issue was introduced in r214638:
+ for (auto &BSIter : BlocksSchedules) {
+ scheduleBlock(BSIter.second.get());
+ }
Because BlocksSchedules is a DenseMap with BasicBlock* keys, blocks are
scheduled in non-deterministic order, resulting in unpredictable IR.
Patch by Daniel Reynaud!
llvm-svn: 225821
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
