Restore some more things to how they were before

This commit is contained in:
Richard Feldman 2020-03-25 02:13:41 -04:00
parent 0951f8048e
commit 2491b2e43b
2 changed files with 16 additions and 3 deletions

View file

@ -1083,7 +1083,7 @@ fn list_set<'a, B: Backend>(
// to avoid misprediction. (In practice this should usually pass,
// and CPUs generally default to predicting that a forward jump
// shouldn't be taken; that is, they predict "else" won't be taken.)
builder.ins().icmp(IntCC::UnsignedLessThan, list_len, elem_index);
builder.ins().icmp(IntCC::UnsignedLessThan, elem_index, list_len);
builder.ins().brz(comparison, fail_block, &[]);