[llvm] [SeparateConstOffsetFromGEP] Decompose constant xor operand if possible (PR #135788)
Jeffrey Byrnes via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 23 16:21:52 PDT 2025
================
@@ -1181,6 +1359,10 @@ bool SeparateConstOffsetFromGEP::run(Function &F) {
DL = &F.getDataLayout();
bool Changed = false;
+
+ // Decompose xor in to "or disjoint" if possible.
+ Changed |= decomposeXor(F);
----------------
jrbyrnes wrote:
Is it possible to integrate this with the main function walk? I don't see why we need another walk.
https://github.com/llvm/llvm-project/pull/135788
More information about the llvm-commits
mailing list