mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
There are two ways of checking for a given type, for example isa<PointerType>(T)
and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -104,7 +104,7 @@ Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
|
||||
assert(Depth <= 6 && "Limit Search Depth");
|
||||
uint32_t BitWidth = DemandedMask.getBitWidth();
|
||||
const Type *VTy = V->getType();
|
||||
assert((TD || !isa<PointerType>(VTy)) &&
|
||||
assert((TD || !VTy->isPointerTy()) &&
|
||||
"SimplifyDemandedBits needs to know bit widths!");
|
||||
assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
|
||||
(!VTy->isIntOrIntVectorTy() ||
|
||||
@ -413,7 +413,7 @@ Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
|
||||
} else
|
||||
// Don't touch a scalar-to-vector bitcast.
|
||||
return 0;
|
||||
} else if (isa<VectorType>(I->getOperand(0)->getType()))
|
||||
} else if (I->getOperand(0)->getType()->isVectorTy())
|
||||
// Don't touch a vector-to-scalar bitcast.
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user