You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have the freeze instruction (and we really want to get rid of undef), we should be more willing to perform folds that introduce freeze.
Part of this is a general apprehension about using freeze, and also we need to decide how freeze counts in the 'is this simpler or not' metric that we use for InstCombine combine rules.
The freeze is necessary for the fold to be valid, but means we don't reduce the instruction count (but does freeze count as an instruction in the same way?). And some were worried about freeze preventing later folds from occurring.
The text was updated successfully, but these errors were encountered:
Extended Description
Now that we have the freeze instruction (and we really want to get rid of undef), we should be more willing to perform folds that introduce freeze.
Part of this is a general apprehension about using freeze, and also we need to decide how freeze counts in the 'is this simpler or not' metric that we use for InstCombine combine rules.
For example, https://reviews.llvm.org/D100211 [Bug #44136], proposed the fold:
The freeze is necessary for the fold to be valid, but means we don't reduce the instruction count (but does freeze count as an instruction in the same way?). And some were worried about freeze preventing later folds from occurring.
The text was updated successfully, but these errors were encountered: