[Git][ghc/ghc][wip/fix-26670] Correcting some suspicious bits of code, removing dead code