[all-commits] [llvm/llvm-project] e158ad: [InstCombine] Canonicalize `icmp eq/ne (A ^ C), B`...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Tue Sep 26 04:33:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e158add121dd20cec3a363cb4e6e66b6072479d7
https://github.com/llvm/llvm-project/commit/e158add121dd20cec3a363cb4e6e66b6072479d7
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2023-09-26 (Tue, 26 Sep 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/icmp-equality-xor.ll
M llvm/test/Transforms/InstCombine/icmp-or.ll
Log Message:
-----------
[InstCombine] Canonicalize `icmp eq/ne (A ^ C), B` to `icmp eq/ne (A ^ B), C` (#67273)
This patch canonicalizes `icmp eq/ne (A ^ Cst), B` to `icmp eq/ne (A ^ B), Cst` since the latter form exposes more optimizations.
Proof: https://alive2.llvm.org/ce/z/9DbhGc
Fixes #65968.
More information about the All-commits
mailing list