[IR] Mark add 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>
Thu, 20 Jul 2023 13:24:19 +0000 (15:24 +0200)
commitf8a36d8c3e264c4fccf8058e699201a452ea7bb7
tree47bf91cdaa5cbd6cfcd5e2eae8e9ae83da705032
parent632594fcb1c9b6a25da32a58cd7364ce02aec745
[IR] Mark add constant expressions as undesirable

In preparation for removing support for add 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/bswap-fold.ll
llvm/test/Transforms/InstSimplify/ConstProp/constant-expr.ll
llvm/test/Transforms/InstSimplify/compare.ll