[all-commits] [llvm/llvm-project] eb7c25: [ConstraintElim] Check top-level GEP flags, object...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Oct 1 02:31:28 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb7c25df7553aae66e992f29ba9dab42a062ecb9
      https://github.com/llvm/llvm-project/commit/eb7c25df7553aae66e992f29ba9dab42a062ecb9
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-10-01 (Thu, 01 Oct 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

  Log Message:
  -----------
  [ConstraintElim] Check top-level GEP flags, object size first (NFC) (#227270)

Collecting the offsets for GEPs can be relatively expensive. First check
the GEP flags of the outer GEP and exit if they are not NUW.

Also look through the outer GEP to get the base pointer, and check size
before collecting offsets.

This saves a small amount of compile-time w/o impacting results:
https://llvm-compile-time-tracker.com/compare.php?from=194c292ff93cf82be3064c94d405b9171d776164&to=423cf820d0c2f1f828d14a7838c9f86af8b9044a&stat=instructions:u

PR: https://github.com/llvm/llvm-project/pull/227270



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list