mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +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:
@ -371,7 +371,7 @@ Instruction *InstCombiner::FoldPHIArgOpIntoPHI(PHINode &PN) {
|
||||
|
||||
// Be careful about transforming integer PHIs. We don't want to pessimize
|
||||
// the code by turning an i32 into an i1293.
|
||||
if (isa<IntegerType>(PN.getType()) && isa<IntegerType>(CastSrcTy)) {
|
||||
if (PN.getType()->isIntegerTy() && CastSrcTy->isIntegerTy()) {
|
||||
if (!ShouldChangeType(PN.getType(), CastSrcTy))
|
||||
return 0;
|
||||
}
|
||||
@ -832,7 +832,7 @@ Instruction *InstCombiner::visitPHINode(PHINode &PN) {
|
||||
// it is only used by trunc or trunc(lshr) operations. If so, we split the
|
||||
// PHI into the various pieces being extracted. This sort of thing is
|
||||
// introduced when SROA promotes an aggregate to a single large integer type.
|
||||
if (isa<IntegerType>(PN.getType()) && TD &&
|
||||
if (PN.getType()->isIntegerTy() && TD &&
|
||||
!TD->isLegalInteger(PN.getType()->getPrimitiveSizeInBits()))
|
||||
if (Instruction *Res = SliceUpIllegalIntegerPHI(PN))
|
||||
return Res;
|
||||
|
Reference in New Issue
Block a user