Better code generation for conditional branches #1

Open
opened 2024-03-03 19:38:53 +01:00 by hgruniaux · 0 comments
hgruniaux commented 2024-03-03 19:38:53 +01:00 (Migrated from github.com)

Non optimal code produced from fib.v:

  ...
  mov rdx, 2
  mov r10, [rbp - 24]
  cmp r10, rdx
  setl dl
  and rdx, 255
  cmp rdx, 0
  jz .L3 

The three instructions before the jz can be removed.

Non optimal code produced from `fib.v`: ```asm ... mov rdx, 2 mov r10, [rbp - 24] cmp r10, rdx setl dl and rdx, 255 cmp rdx, 0 jz .L3 ``` The three instructions before the `jz` can be removed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hubert/iris#1
No description provided.