mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Follow up to 90488. Turn a check into an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1064,8 +1064,8 @@ bool MachineInstr::isInvariantLoad(AliasAnalysis *AA) const {
|
|||||||
unsigned MachineInstr::isConstantValuePHI() const {
|
unsigned MachineInstr::isConstantValuePHI() const {
|
||||||
if (getOpcode() != TargetInstrInfo::PHI)
|
if (getOpcode() != TargetInstrInfo::PHI)
|
||||||
return 0;
|
return 0;
|
||||||
if (getNumOperands() <= 1)
|
assert(getNumOperands() >= 3 &&
|
||||||
return 0;
|
"It's illegal to have a PHI without source operands");
|
||||||
|
|
||||||
unsigned Reg = getOperand(1).getReg();
|
unsigned Reg = getOperand(1).getReg();
|
||||||
for (unsigned i = 3, e = getNumOperands(); i < e; i += 2)
|
for (unsigned i = 3, e = getNumOperands(); i < e; i += 2)
|
||||||
|
Reference in New Issue
Block a user