[PATCH] D140844: [InstCombine] Canonicalize gep of addrspacecast

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 2 10:38:46 PST 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:2473
+      return replaceInstUsesWith(GEP, NewAC);
+    }
+  }
----------------
We probably shouldn't be reassociating if either address space is non-integral. I think that was one of the fixes that never happened for the existing code


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140844/new/

https://reviews.llvm.org/D140844



More information about the llvm-commits mailing list