Assignments with if
statements are not optimized
#1475
Labels
optimizer
Related to IR optimization or analysis
if
statements are not optimized
#1475
Describe the bug
During working on another issue (#1461), we noticed that
if
statements used to assign values based on some condition are not optimized.To Reproduce
slow_if
andfast_if
samples).slow_if
fast_if
Expected behavior
The
slow_if
, which usesif
statement, should be converted to the equivalent of thefast_if
.Environment (this can be helpful for troubleshooting):
The text was updated successfully, but these errors were encountered: