-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Labels
sp-correctnessstatic python correctnessstatic python correctnessstaticpythonstatic python issuesstatic python issues
Description
$ docker run -v $PWD:/vol -it --rm ghcr.io/facebookincubator/cinder-runtime:cinder-3.8 -X jit -m compiler --static vol/autogen_bug.py
JIT: /cinder/src/Jit/codegen/autogen.cpp:143 -- assertion failed: func != nullptr
No pattern found for opcode Fadd: Xxr
from __static__ import box, double, inline
@inline
def foo(a: double, b: double) -> double:
return b - a
def main():
c: double = 0.
for _ in range(10):
c += foo(.4, .97)
print('done', box(c))
if __name__ == '__main__':
main()
The problem goes away if @inline
is removed.
See in seen in cinder-3.8.6c2de94
Metadata
Metadata
Assignees
Labels
sp-correctnessstatic python correctnessstatic python correctnessstaticpythonstatic python issuesstatic python issues