[GHC] #16086: Compile countLeadingZeros to lzcnt if -mbmi2 is set
#16086: Compile countLeadingZeros to lzcnt if -mbmi2 is set -------------------------------------+------------------------------------- Reporter: ethercrow | Owner: (none) Type: feature | Status: new request | Priority: low | Milestone: Component: Compiler | Version: 8.6.3 (CodeGen) | Keywords: | Operating System: Unknown/Multiple Architecture: x86_64 | Type of failure: None/Unknown (amd64) | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I started implementing this in https://gitlab.haskell.org/ghc/ghc/merge_requests/27 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16086> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#16086: Compile countLeadingZeros to lzcnt if -mbmi2 is set -------------------------------------+------------------------------------- Reporter: ethercrow | Owner: ethercrow Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.6.3 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 | (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by ethercrow): * owner: (none) => ethercrow -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16086#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#16086: Compile countLeadingZeros to lzcnt if -mbmi2 is set -------------------------------------+------------------------------------- Reporter: ethercrow | Owner: ethercrow Type: feature request | Status: patch Priority: low | Milestone: Component: Compiler | Version: 8.6.3 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 | (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by ethercrow): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16086#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#16086: Compile countLeadingZeros to lzcnt if -mbmi2 is set -------------------------------------+------------------------------------- Reporter: ethercrow | Owner: ethercrow Type: feature request | Status: patch Priority: low | Milestone: Component: Compiler | Version: 8.6.3 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 | (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by AndreasK): * cc: AndreasK (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16086#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#16086: Compile countLeadingZeros to lzcnt if -mbmi2 is set -------------------------------------+------------------------------------- Reporter: ethercrow | Owner: ethercrow Type: feature request | Status: patch Priority: low | Milestone: Component: Compiler | Version: 8.6.3 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 | (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"c1d9416f2672b8d844141c0393fe773676749777/ghc" c1d9416f/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="c1d9416f2672b8d844141c0393fe773676749777" Compile count{Leading,Trailing}Zeros to corresponding x86_64 instructions under -mbmi2 This works similarly to existing implementation for popCount. Trac ticket: #16086. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16086#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC