reactorlabs / rir

GNU General Public License v2.0
62 stars 18 forks source link

Simple case not handle by constantfolding #1275

Open skrynski opened 3 months ago

skrynski commented 3 months ago

This simple case is not handled by constant folding. It creates a Phi instruction that returns 1 on both branches function(x) { y <- 0; if (x) { y <- 1; } else { y <- 1; }; y }