mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Convert MaskedValueIsZero and all its users to use APInt. Also add
a SignBitIsZero function to simplify a common use case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47561 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -91,7 +91,9 @@ namespace {
|
||||
// see if the missing bits (0x1000) are already known zero if not, the zap
|
||||
// isn't okay to do, as it won't clear all the required bits.
|
||||
if (BitsToCheck &&
|
||||
!CurDAG->MaskedValueIsZero(LHS, BitsToCheck))
|
||||
!CurDAG->MaskedValueIsZero(LHS,
|
||||
APInt(LHS.getValueSizeInBits(),
|
||||
BitsToCheck)))
|
||||
return 0;
|
||||
|
||||
return Result;
|
||||
|
Reference in New Issue
Block a user