Skip to content

Commit b0f35ac

Browse files
committed
[Cranelift] fix x64 lea emission
1 parent 3df8ce1 commit b0f35ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cranelift/codegen/src/isa/x64/lower.isle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
;; For more details on this see the `emit.rs` logic to emit
6565
;; `LoadEffectiveAddress`.
6666
(rule iadd_base_case_32_or_64_lea -5 (lower (has_type (ty_32_or_64 ty) (iadd _ x y)))
67-
(x64_lea ty (to_amode_add (mem_flags_trusted) x y (zero_offset))))
67+
;; (x64_lea ty (to_amode_add (mem_flags_trusted) x y (zero_offset)))
68+
(x64_add ty x y))
6869

6970
;; Higher-priority cases than the previous two where a load can be sunk into
7071
;; the add instruction itself. Note that both operands are tested for

0 commit comments

Comments
 (0)