[llvm] [SeparateConstOffsetFromGEP] Decompose constant xor operand if possible (PR #150438)
Jeffrey Byrnes via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 19:16:52 PDT 2025
================
@@ -0,0 +1,195 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
----------------
jrbyrnes wrote:
Can you add some tests:
1. negative case -- where there is no disjoint bits.
2. variable operand of the xor is an operand with extractable offset (e.g. or-disjoint with a constant)
3. user of xor between the GEP where the user is an operand with an extractable offset
4. case where this disjoint bits for the xor constant produces an offset that is too large for the addressing mode.
https://github.com/llvm/llvm-project/pull/150438
More information about the llvm-commits
mailing list