Commit 1b2819a
committed
Remove cross-type bitcast constant folding rules
These rules fire without knowing the target type, so they also fire on
same-type bitcasts (e.g. float→float), polluting e-classes with
wrong-type values (IntToExpr in a FloatExpr context). This caused type
mismatch errors in the difftests (matrix_ops, vector_extract_insert).
Same-type elimination via SameTypeBitcast is retained.1 parent e2dadb1 commit 1b2819a
2 files changed
Lines changed: 4 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | 498 | | |
518 | 499 | | |
519 | 500 | | |
| |||
1134 | 1115 | | |
1135 | 1116 | | |
1136 | 1117 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | 1118 | | |
1156 | 1119 | | |
1157 | 1120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
507 | 499 | | |
508 | 500 | | |
509 | 501 | | |
| |||
0 commit comments