HomePhabricator

[x86] Refactor a PowerPC specific ctlz/srl transformation (NFC).

Authored by pgousseau on Aug 16 2016, 6:53 AM.

Description

[x86] Refactor a PowerPC specific ctlz/srl transformation (NFC).

Following the discussion on D22038, this refactors a PowerPC specific setcc -> srl(ctlz) transformation so it can be used by other targets.

Differential Revision: https://reviews.llvm.org/D23445

llvm-svn: 278799

Details