HomePhabricator

[APInt] Fix getBitsNeeded for INT_MIN values

Description

[APInt] Fix getBitsNeeded for INT_MIN values

Summary: This patch fixes behaviour of APInt::getBitsNeeded for INT_MIN 10 bits values.

Reviewers: regehr, RKSimon

Reviewed By: RKSimon

Subscribers: grandinj, dexonsmith, kristina, llvm-commits

Tags: #llvm

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

Details

Committed
QuolykJun 29 2019, 4:38 AM
Reviewer
RKSimon
Differential Revision
D63691: [APInt] Fix getBitsNeeded for INT_MIN values
Parents
rL364709: [LFTR] Fix post-inc pointer IV with truncated exit count (PR41998)
Branches
Unknown
Tags
Unknown