Commit 36267e1
committed
[AMDGPU][SplitModule] Fix unintentional integer division
A static analysis tool warned that a division was always being performed
in integer division, so was either 0.0 or 1.0. This doesn't seem
intentional, so has been fixed to return a true ratio using
floating-point division. This has a knock-on effect on how a test was
splitting modules.1 parent 99fd1c5 commit 36267e1
File tree
2 files changed
+8
-7
lines changed- llvm
- lib/Target/AMDGPU
- test/tools/llvm-split/AMDGPU
2 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
| 1104 | + | |
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
| |||
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
29 | 31 | | |
30 | | - | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments