NilFoundation / zkllvm-rslang

Other
15 stars 2 forks source link

Decrease panic handling code for assigner target #37

Closed aleasims closed 1 year ago

aleasims commented 1 year ago

First step was done in:

Actually we can go forward and completely replace code in panic implementation for intrinsics::abort() as it is done in panic_fmt.

This will reduce panic function to something like:

define void @panic(...) {
start:
  tail call void @llvm.trap()
  unreachable
}

This will not require assigner to interpret useless instructions in case of panic.