NCG: Fix a bug where we errounously removed a required jump instruction.
Add a new method to the Instruction class to check if we can eliminate a jump in favour of fallthrough control flow. Fixes #24507
Showing
- compiler/GHC/CmmToAsm/AArch64.hs 1 addition, 0 deletionscompiler/GHC/CmmToAsm/AArch64.hs
- compiler/GHC/CmmToAsm/AArch64/Instr.hs 6 additions, 0 deletionscompiler/GHC/CmmToAsm/AArch64/Instr.hs
- compiler/GHC/CmmToAsm/BlockLayout.hs 2 additions, 3 deletionscompiler/GHC/CmmToAsm/BlockLayout.hs
- compiler/GHC/CmmToAsm/Instr.hs 7 additions, 1 deletioncompiler/GHC/CmmToAsm/Instr.hs
- compiler/GHC/CmmToAsm/Monad.hs 26 additions, 0 deletionscompiler/GHC/CmmToAsm/Monad.hs
- compiler/GHC/CmmToAsm/PPC.hs 1 addition, 0 deletionscompiler/GHC/CmmToAsm/PPC.hs
- compiler/GHC/CmmToAsm/PPC/Instr.hs 8 additions, 0 deletionscompiler/GHC/CmmToAsm/PPC/Instr.hs
- compiler/GHC/CmmToAsm/Reg/Liveness.hs 5 additions, 0 deletionscompiler/GHC/CmmToAsm/Reg/Liveness.hs
- compiler/GHC/CmmToAsm/X86.hs 1 addition, 0 deletionscompiler/GHC/CmmToAsm/X86.hs
- compiler/GHC/CmmToAsm/X86/Instr.hs 12 additions, 0 deletionscompiler/GHC/CmmToAsm/X86/Instr.hs
- testsuite/tests/codeGen/should_run/T24507.hs 15 additions, 0 deletionstestsuite/tests/codeGen/should_run/T24507.hs
- testsuite/tests/codeGen/should_run/T24507.stdout 7 additions, 0 deletionstestsuite/tests/codeGen/should_run/T24507.stdout
- testsuite/tests/codeGen/should_run/T24507_cmm.cmm 35 additions, 0 deletionstestsuite/tests/codeGen/should_run/T24507_cmm.cmm
Loading
Please register or sign in to comment