[llvm] [SeparateConstOffsetFromGEP] Reorder trivial GEP chains to separate constants (PR #73056)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 23:08:39 PST 2024


================
@@ -393,6 +393,11 @@ class SeparateConstOffsetFromGEP {
   /// and returns true if the splitting succeeds.
   bool splitGEP(GetElementPtrInst *GEP);
 
+  /// Tries to reorder the given GEP with the GEP that produces the base if
+  /// doing so results in producing a constant offset as the outtermost
----------------
arsenm wrote:

Typo 'outtermost'

https://github.com/llvm/llvm-project/pull/73056


More information about the llvm-commits mailing list