Skip to content

Commit 3468a12

Browse files
committed
update selection to pick LEA for more things
1 parent e328eae commit 3468a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/amd64/selection.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class selector =
194194
method! select_operation op args dbg =
195195
match op with
196196
(* Recognize the LEA instruction *)
197-
| Caddi | Caddv | Cadda | Csubi -> (
197+
| Caddi | Caddv | Cadda | Csubi | Cor -> (
198198
match self#select_addressing Word_int (Cop (op, args, dbg)) with
199199
| Iindexed _, _ | Iindexed2 0, _ -> super#select_operation op args dbg
200200
| ( ((Iindexed2 _ | Iscaled _ | Iindexed2scaled _ | Ibased _) as addr),

0 commit comments

Comments
 (0)