Commit 6496869
committed
[CGP] Fix matching of uadd overflow
This patch fixes the issue where uadd overflow
intrinsic is matched for:
`Add = add A,(uint64_t)-1; Cmp = icmp ne A, 0`
instead of:
`Add = add A,-1; Cmp = icmp ne A, 0`
where -1 is represented in 256 bits.
Signed-off-by: Vladimir Radosavljevic <[email protected]>1 parent de416e1 commit 6496869
File tree
2 files changed
+10
-9
lines changed- llvm
- lib/CodeGen
- test/CodeGen/EraVM
2 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
1587 | | - | |
| 1587 | + | |
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments