[InstCombine] Disallow constant expressions in `not` canonicalization
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 20 Dec 2022 16:55:09 +0000 (19:55 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 20 Dec 2022 16:56:37 +0000 (19:56 +0300)
commita7b898b49abb90dd289d7c9adf5f9a6350787347
tree176c720fb298964aa7528d55a97a74c0d67b9c17
parentaa34a9d108bd79eb0ac40979a7bdae4b19b1624d
[InstCombine] Disallow constant expressions in `not` canonicalization

As per post-commit feedback - we generally do not like Constant Expressions,
and trying to deal with them leads to inconsistent results
that may very well be non-optimal. So just don't.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp