Skip to content
Snippets Groups Projects
Commit de262930 authored by Peter Trommler's avatar Peter Trommler :drum: Committed by Marge Bot
Browse files

Delete ToDo about incorrect optimisation [skip ci]

On big-endian systems a narrow after a load cannot be replaced with
a narrow load.
parent 4a2ef3dd
No related branches found
No related tags found
No related merge requests found
...@@ -108,10 +108,6 @@ cmmMachOpFoldM platform conv_outer [CmmMachOp conv_inner [x]] ...@@ -108,10 +108,6 @@ cmmMachOpFoldM platform conv_outer [CmmMachOp conv_inner [x]]
intconv True = MO_SS_Conv intconv True = MO_SS_Conv
intconv False = MO_UU_Conv intconv False = MO_UU_Conv
-- ToDo: a narrow of a load can be collapsed into a narrow load, right?
-- but what if the architecture only supports word-sized loads, should
-- we do the transformation anyway?
cmmMachOpFoldM platform mop [CmmLit (CmmInt x xrep), CmmLit (CmmInt y _)] cmmMachOpFoldM platform mop [CmmLit (CmmInt x xrep), CmmLit (CmmInt y _)]
= case mop of = case mop of
-- for comparisons: don't forget to narrow the arguments before -- for comparisons: don't forget to narrow the arguments before
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment