Open nikic opened 1 month ago
Inverse case: https://llvm.godbolt.org/z/qsq8cj9eK
Adding handling for this to foldEqOfParts() is not as straightforward as I'd like because it moves away from "and/or of icmps" and we're quite geared towards that right now. Like, it will no longer be automatically invoked for logical and/or, reassociated and/or, etc. This should probably be cleaned up first.
From https://github.com/rust-lang/rust/issues/131162:
https://llvm.godbolt.org/z/Pasonhe9d:
LLVM 18:
LLVM 19:
I believe this is fallout from removal of the trunc i1 canonicalization in https://github.com/llvm/llvm-project/pull/84628.