Revert "Reapply [IR] Mark and constant expressions as undesirable"
authorNathan Chancellor <nathan@kernel.org>
Fri, 21 Jul 2023 22:23:08 +0000 (15:23 -0700)
committerNathan Chancellor <nathan@kernel.org>
Fri, 21 Jul 2023 22:57:03 +0000 (15:57 -0700)
commit17f4f262fc5c4361cf43e91f2137ff7b2dcadc62
tree43a3622bc366a7c2072ed6496a7c75efce924d41
parent6398b687c516d27778a570635d6f2fe1c145cb18
Revert "Reapply [IR] Mark and constant expressions as undesirable"

This reverts commit 086ee99564afbb11449c08ea2e094f7f49fadde5.

This patch causes an infinite loop when building arch/mips/mm/c-r4k.c in
the Linux kernel. See the comment in Phabricator for a reduced
reproducer: https://reviews.llvm.org/rG086ee99564afbb11449c08ea2e094f7f49fadde5
clang/test/CodeGen/catch-nullptr-and-nonzero-offset.c
llvm/lib/IR/ConstantFold.cpp
llvm/lib/IR/Constants.cpp
llvm/test/CodeGen/Hexagon/atomic-opaque-basic.ll
llvm/test/Transforms/InstCombine/and-xor-or.ll
llvm/test/Transforms/InstCombine/bswap-fold.ll
llvm/test/Transforms/InstSimplify/ConstProp/constant-expr.ll
llvm/test/Transforms/InstSimplify/compare.ll