JIT: Misc if-conversion - #128449
#128449JIT: Misc if-conversion#128449jakobbotsch merged 9 commits intodotnet:maindotnet/runtime:mainfrom BoyBaykiller:if-conversion-float-foldBoyBaykiller/runtime:if-conversion-float-foldCopy head branch name to clipboard
Conversation
* call gtFoldExprConditional * add missing GT_SELECT equality
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
There's notably no reason to not allow it into codegen if the input is a floating-point comparison. Such cases can emit |
|
That'd be nice to handle. Currently doing that hits assert |
…ersion-float-fold
…ersion-float-fold
…ersion-float-fold
|
@jakobbotsch PTAL. A few tiny changes packed in one PR. Next we can look into supporting float-select into codegen. Or adding opts for it. |
…ntime into if-conversion-float-fold
* Allow GT_SELECT for floats, but only temporally for optimizations, not into codegen (for now) * Call `gtFoldExprConditional`, this handles simple folding * Add missing `GT_SELECT` equality, needed because without `gtFoldExprConditional` asserts * Move the 32-bit bailout to after optimizations so that it can still profit from them. Only abort when there were no optimizations done
gtFoldExprConditional, this handles simple foldingGT_SELECTequality, needed because withoutgtFoldExprConditionalasserts