Commit 97cbd1f
committed
[Bitcode] Fix nondeterministic phi instruction order
Currently there can be nondeterminism of the form
```diff
- <INST_PHI op0=307 op1=2 op2=22 op3=67 op4=29 op5=111 op6=57 ...>
+ <INST_PHI op0=307 op1=2 op2=22 op3=67 op4=29 op5=157 op6=71 ...>
```
in generated bitcode. Stably sorting the use-list entries solves that.1 parent 2368be3 commit 97cbd1f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
0 commit comments