HomePhabricator

[SimpligyCFG] NFC, remove GCD that was only used for powers of two

Authored by shawnl on May 26 2019, 6:54 AM.

Description

[SimpligyCFG] NFC, remove GCD that was only used for powers of two

and replace with an equilivent countTrailingZeros.

GCD is much more expensive than this, with repeated division.

This depends on D60823

llvm-svn: 361726

Details

Committed
shawnlMay 26 2019, 6:54 AM
Parents
rG50c73a044f22: [SimplifyCFG] NFC, update Switch tests to HEAD so I can see if my changes…
Branches
Unknown
Tags
Unknown