Commit 71b2f15
committed
simplify: port CondBranch const-fold + CIntToCBool to C (chunks 5-6)
Two more Category 2 handlers using SimplifyEnv:
- simplify_cint_to_cbool_c: folds known int to CBool constant
- simplify_cond_branch_const_c: folds CondBranch with known-constant
condition to unconditional Branch (falls through to C++ for
IntConvert forwarding path)
Adds make_cbool_type helper for CBool HirType construction.1 parent 0622572 commit 71b2f15
3 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2749 | 2749 | | |
2750 | 2750 | | |
2751 | 2751 | | |
2752 | | - | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
2753 | 2757 | | |
| 2758 | + | |
2754 | 2759 | | |
2755 | 2760 | | |
2756 | 2761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments