Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
123a8d77
by Peter Trommler at 2025-12-13T05:03:57-05:00
1 changed file:
Changes:
| ... | ... | @@ -290,9 +290,7 @@ cmmMachOpFoldM _ (MO_Sub _) [CmmLit lit, CmmLit (CmmInt i rep)] |
| 290 | 290 | -- the same comparison at the larger size.
|
| 291 | 291 | |
| 292 | 292 | cmmMachOpFoldM platform cmp [CmmMachOp conv [x], CmmLit (CmmInt i _)]
|
| 293 | - | -- powerPC NCG has a TODO for I8/I16 comparisons, so don't try
|
|
| 294 | - platformArch platform `elem` [ArchX86, ArchX86_64],
|
|
| 295 | - -- if the operand is widened:
|
|
| 293 | + | -- if the operand is widened:
|
|
| 296 | 294 | Just (rep, signed, narrow_fn) <- maybe_conversion conv,
|
| 297 | 295 | -- and this is a comparison operation:
|
| 298 | 296 | Just narrow_cmp <- maybe_comparison cmp rep signed,
|