[all-commits] [llvm/llvm-project] ee605b: [ConstraintElim] Use collectOffset result for chai...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Dec 1 09:01:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee605b0acccea92bb2375921955008e1d6ca22d2
      https://github.com/llvm/llvm-project/commit/ee605b0acccea92bb2375921955008e1d6ca22d2
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-12-01 (Thu, 01 Dec 2022)

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

  Log Message:
  -----------
  [ConstraintElim] Use collectOffset result for chained gep support.

This slightly simplifies the code and addresses a correctness issue
where the index scaling for the precondition was not considered
properly.

Thanks to @nikic for pointing that out in D137840.




More information about the All-commits mailing list