[llvm] [SeparateConstOffsetFromGEP] Decompose constant xor operand if possible (PR #135788)
Sumanth Gundapaneni via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 24 06:35:46 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);
----------------
sgundapa wrote:
I will look at it. I can change the main function walk, but it may it more complex. decomposeXor modifies the IR in such a way that the rest of the pass does its things.
https://github.com/llvm/llvm-project/pull/135788
More information about the llvm-commits
mailing list