Skip to content

Commit

Permalink
Update on "[ir] Constant fold support for u1"
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
listerily committed May 17, 2023
1 parent a2d9883 commit 12c18fd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/taichi/examples/minimal.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import taichi as ti

ti.init(print_ir=True)
ti.init()


@ti.kernel
def p() -> ti.f32:
y = 0.0
x = 1
y -= not x
return y
print(42)
return 40 + 2


print(p())

0 comments on commit 12c18fd

Please sign in to comment.