OSDN Git Service

[SimpligyCFG] NFC intended, remove GCD that was only used for powers of two
authorShawn Landden <shawn@git.icu>
Thu, 13 Jun 2019 05:01:44 +0000 (05:01 +0000)
committerShawn Landden <shawn@git.icu>
Thu, 13 Jun 2019 05:01:44 +0000 (05:01 +0000)
commitddb83a677be63b20db4b4a5b8bd4f0e54998924e
tree030703edb8b760a5ac99e35bf36c047ebccc1196
parent25a335a1d89e07ffbafba39c773a537499536d3c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363227 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp