diff options
author | Jun Bum Lim <junbuml@codeaurora.org> | 2016-05-13 18:38:35 +0000 |
---|---|---|
committer | Jun Bum Lim <junbuml@codeaurora.org> | 2016-05-13 18:38:35 +0000 |
commit | be11bdc4b06ad634442016fce4e13a426ef9caa5 (patch) | |
tree | 1dcfe093082a05473e38364f47aa7ba52b43aa6a /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 4fd6a96008a43a6ff9e8267507211b523488bf7a (diff) | |
download | bcm5719-llvm-be11bdc4b06ad634442016fce4e13a426ef9caa5.tar.gz bcm5719-llvm-be11bdc4b06ad634442016fce4e13a426ef9caa5.zip |
Rename getLargestLegalIntTypeSize to getLargestLegalIntTypeSizeInBits(). NFC.
Summary: Rename DataLayout::getLargestLegalIntTypeSize to DataLayout::getLargestLegalIntTypeSizeInBits() to prevent similar mistakes fixed in r269433.
Reviewers: joker.eph, mcrosier
Subscribers: mcrosier, llvm-commits
Differential Revision: http://reviews.llvm.org/D20248
llvm-svn: 269456
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 56a1639c8e9..3282dc69e7a 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -1690,7 +1690,7 @@ static bool despeculateCountZeros(IntrinsicInst *CountZeros, // Only handle legal scalar cases. Anything else requires too much work. Type *Ty = CountZeros->getType(); unsigned SizeInBits = Ty->getPrimitiveSizeInBits(); - if (Ty->isVectorTy() || SizeInBits > DL->getLargestLegalIntTypeSize()) + if (Ty->isVectorTy() || SizeInBits > DL->getLargestLegalIntTypeSizeInBits()) return false; // The intrinsic will be sunk behind a compare against zero and branch. |