Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cranelift/codegen/src/machinst/vcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ impl<I: VCodeInst> VCodeBuilder<I> {
}

fn collect_operands(&mut self) {
let allocatable = PRegSet::from(self.vcode.machine_env());
for (i, insn) in self.vcode.insts.iter().enumerate() {
// Push operands from the instruction onto the operand list.
//
Expand All @@ -522,7 +523,6 @@ impl<I: VCodeInst> VCodeBuilder<I> {
// its register fields (which is slow, branchy code) once.

let vreg_aliases = &self.vcode.vreg_aliases;
let allocatable = PRegSet::from(self.vcode.machine_env());
let mut op_collector =
OperandCollector::new(&mut self.vcode.operands, allocatable, |vreg| {
VCode::<I>::resolve_vreg_alias_impl(vreg_aliases, vreg)
Expand Down