HomePhabricator

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

Authored by shawnl on Jun 14 2019, 9:56 AM.

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: 363422

Details

Committed
shawnlJun 14 2019, 9:56 AM
Differential Revision
D61151: [SimpligyCFG] NFC, remove GCD that was only used for powers of two
Parents
rGbea12861558a: Wrap a test to 80 columns
Branches
Unknown
Tags
Unknown