[all-commits] [llvm/llvm-project] e0136a: [ConstraintElimination] Support chained GEPs with ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Oct 8 09:00:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0136a62cc2e264d019d75dc36702ac77bf3680f
      https://github.com/llvm/llvm-project/commit/e0136a62cc2e264d019d75dc36702ac77bf3680f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-10-08 (Sat, 08 Oct 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/gep-add.ll
    M llvm/test/Transforms/ConstraintElimination/gep-sub.ll

  Log Message:
  -----------
  [ConstraintElimination] Support chained GEPs with constant offsets.

Handle the (gep (gep ....), C) case by incrementing the constant
coefficient of the inner GEP, if C is a constant.




More information about the All-commits mailing list