GP-1997 Don't over propagate global values

This commit is contained in:
caheckman 2022-05-04 19:08:46 -04:00
parent afb63d811c
commit 9d0829651a
7 changed files with 17 additions and 20 deletions

View file

@ -280,7 +280,8 @@ void PcodeOp::setOpcode(TypeOp *t_op)
{
flags &= ~(PcodeOp::branch | PcodeOp::call | PcodeOp::coderef | PcodeOp::commutative |
PcodeOp::returns | PcodeOp::nocollapse | PcodeOp::marker | PcodeOp::booloutput |
PcodeOp::unary | PcodeOp::binary | PcodeOp::special);
PcodeOp::unary | PcodeOp::binary | PcodeOp::ternary | PcodeOp::special |
PcodeOp::has_callspec | PcodeOp::no_copy_propagation);
opcode = t_op;
flags |= t_op->getFlags();
}