Skip to content

Incorrect ToDo in comment

In compiler/GHC/Cmm/Opt.hs there is this todo:

-- ToDo: a narrow of a load can be collapsed into a narrow load, right?

This optimisation is incorrect on big-endian systems. Instead a narrow load with an appropriate offset must be done on big-endian systems.

The comment should be deleted.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information