[SDAG] Fix incorrect use of undef for boolean contents (PR63055)
FoldSetCC() returns UNDEF in a number of cases. However, the SetCC result must follow BooleanContents. Unless the type is a pre-legalization i1 or we have UndefinedBooleanContents, the use of UNDEF will not uphold the requirement that the top bits are either zero or match the low bit. In such cases, return zero instead. Fixes https://github.com/llvm/llvm-project/issues/63055. Differential Revision: https://reviews.llvm.org/D151883
parent
3ddd1864
Please register or sign in to comment