HomePhabricator

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

Authored by shawnl on Jun 12 2019, 10:01 PM.

Description

[SimpligyCFG] NFC intended, 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

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

llvm-svn: 363227