[all-commits] [llvm/llvm-project] a40fde: [ConstraintElimination] Add tests for GEPs with di...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Oct 9 13:54:28 PDT 2022


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

  Changed paths:
    A llvm/test/Transforms/ConstraintElimination/gep-arithmetic-different-types.ll

  Log Message:
  -----------
  [ConstraintElimination] Add tests for GEPs with different source types.


  Commit: fee8f561bdc9317eee13b8f1866ca0dc778c1dc5
      https://github.com/llvm/llvm-project/commit/fee8f561bdc9317eee13b8f1866ca0dc778c1dc5
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-10-09 (Sun, 09 Oct 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/gep-arithmetic-different-types.ll
    M llvm/test/Transforms/ConstraintElimination/geps-unsigned-predicates.ll
    M llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll

  Log Message:
  -----------
  [ConstraintElimination] Include index type scale.

The current decomposition for GEPs did not correctly handle cases where
GEPs access different source types. Adjust the constraints by including
the indexed type-size as coefficients.

Further generalization to allow GEPs with more than one index is a
needed general follow-up improvement.


Compare: https://github.com/llvm/llvm-project/compare/4de58eb432b6...fee8f561bdc9


More information about the All-commits mailing list