Skip to content

Cleaning up vm.cmp and vm.ext/vm.trunc ops in prep for i64. - #2597

Merged
benvanik merged 3 commits into
mainfrom
benvanik-vm64-cmp
Jul 23, 2020
Merged

benvanik merged 3 commits into
mainfrom
benvanik-vm64-cmp

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

Fewer ops keeps things simpler in the runtime and zero extension (in addition to the existing sign extension) allows for register transfer.

Progress on #2574.

benvanik added 2 commits July 21, 2020 07:32
These will be used to move between 32-bit and 64-bit registers so it's
good to have a complete set (both zero and sign).
With cmp eq/ne and lt it's possible to get the rest of the comparison
operators. This changes lte/gt/gte variants to be pseudo ops that are
canonicalized to some mix of eq/ne+lt+etc.
@benvanik benvanik added enhancement ➕ New feature or request runtime Relating to the IREE runtime library labels Jul 21, 2020
@benvanik benvanik added this to the 2020Q3 Core milestone Jul 21, 2020
@benvanik
benvanik requested a review from ScottTodd July 21, 2020 14:34
@benvanik
benvanik marked this pull request as ready for review July 21, 2020 14:46
Comment thread iree/compiler/Dialect/VM/IR/VMOps.td Resolved
@benvanik
benvanik merged commit 2dffc08 into main Jul 23, 2020
@benvanik
benvanik deleted the benvanik-vm64-cmp branch July 23, 2020 03:55
@rsuderman rsuderman mentioned this pull request Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ➕ New feature or request runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants