mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +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:
parent
0c4d7a1ba5
commit
8ec4365621
@ -267,8 +267,7 @@ AArch64AddressTypePromotion::propagateSignExtension(Instructions &SExtInsts) {
|
||||
}
|
||||
|
||||
// Now try to get through the chain of definitions.
|
||||
while (isa<Instruction>(SExt->getOperand(0))) {
|
||||
Instruction *Inst = dyn_cast<Instruction>(SExt->getOperand(0));
|
||||
while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) {
|
||||
DEBUG(dbgs() << "Try to get through:\n" << *Inst << '\n');
|
||||
if (!canGetThrough(Inst) || !shouldGetThrough(Inst)) {
|
||||
// We cannot get through something that is not an Instruction
|
||||
|
Loading…
x
Reference in New Issue
Block a user