[llvm] [SeparateConstOffsetFromGEP] Decompose constant xor operand if possible (PR #135788)
    Juan Manuel Martinez CaamaƱo via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed May 21 04:10:57 PDT 2025
    
    
  
================
@@ -1349,9 +1351,9 @@ bool XorToOrDisjointTransformer::run() {
 
   // Process each group of XORs
   for (auto &GroupPair : XorGroups) {
-    Value *OriginalBaseVal = GroupPair.first;
+    Instruction *OriginalBaseInst = cast<Instruction>(GroupPair.first);
----------------
jmmartinez wrote:
You do not need the cast anymore since `GroupPair.first` is an `Instruction` already.
https://github.com/llvm/llvm-project/pull/135788
    
    
More information about the llvm-commits
mailing list