1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-02-13 10:32:06 +00:00

AArch64: Merge isa with dyn_cast

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-07-02 17:26:39 +00:00
parent 0c4d7a1ba5
commit 8ec4365621

@ -267,8 +267,7 @@ AArch64AddressTypePromotion::propagateSignExtension(Instructions &SExtInsts) {
} }
// Now try to get through the chain of definitions. // Now try to get through the chain of definitions.
while (isa<Instruction>(SExt->getOperand(0))) { while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) {
Instruction *Inst = dyn_cast<Instruction>(SExt->getOperand(0));
DEBUG(dbgs() << "Try to get through:\n" << *Inst << '\n'); DEBUG(dbgs() << "Try to get through:\n" << *Inst << '\n');
if (!canGetThrough(Inst) || !shouldGetThrough(Inst)) { if (!canGetThrough(Inst) || !shouldGetThrough(Inst)) {
// We cannot get through something that is not an Instruction // We cannot get through something that is not an Instruction