mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use type helper functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1418,8 +1418,7 @@ IsProfitableToFoldIntoAddressingMode(Instruction *I, ExtAddrMode &AMBefore,
|
||||
Value *Address = User->getOperand(OpNo);
|
||||
if (!Address->getType()->isPointerTy())
|
||||
return false;
|
||||
Type *AddressAccessTy =
|
||||
cast<PointerType>(Address->getType())->getElementType();
|
||||
Type *AddressAccessTy = Address->getType()->getPointerElementType();
|
||||
|
||||
// Do a match against the root of this address, ignoring profitability. This
|
||||
// will tell us if the addressing mode for the memory operation will
|
||||
|
Reference in New Issue
Block a user