mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Watch out for PHI instruction with no source operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a8ee23a81
commit
9aed9396a6
@ -1064,6 +1064,8 @@ bool MachineInstr::isInvariantLoad(AliasAnalysis *AA) const {
|
||||
unsigned MachineInstr::isConstantValuePHI() const {
|
||||
if (getOpcode() != TargetInstrInfo::PHI)
|
||||
return 0;
|
||||
if (getNumOperands() <= 1)
|
||||
return 0;
|
||||
|
||||
unsigned Reg = getOperand(1).getReg();
|
||||
for (unsigned i = 3, e = getNumOperands(); i < e; i += 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user