Reapply [IR] Mark and constant expressions as undesirable
authorNikita Popov <npopov@redhat.com>
Thu, 20 Jul 2023 12:31:18 +0000 (14:31 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 21 Jul 2023 08:10:50 +0000 (10:10 +0200)
commit086ee99564afbb11449c08ea2e094f7f49fadde5
tree4191815d5864cec64f7a7e8fcb3b44574564c4a1
parent163268ada0679a3cbaa3488e6e485770548c37f0
Reapply [IR] Mark and constant expressions as undesirable

Reapply after fixing an issue in canonicalizeLogicFirst() exposed
by this change (218f97578b26f7a89f7f8ed0748c31ef0181f80a).

-----

In preparation for removing support for and expressions, mark them
as undesirable. As such, we will no longer implicitly create such
expressions, but they still exist.
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