Commit e917c5eb authored by qinsoon's avatar qinsoon

global should match ireg on x86_64

parent 017048a8
......@@ -5299,6 +5299,10 @@ impl<'a> InstructionSelection {
Value_::SSAVar(_) | Value_::Constant(_) => {
RegGroup::get_from_value(&pv) == RegGroup::GPR
}
Value_::Global(_) => {
// global is always a ireg (it is iref<T>)
true
}
_ => false
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment