[all-commits] [llvm/llvm-project] aec0c1: [ConstraintElim] Replace custom GEP index handling...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sun Oct 16 13:53:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aec0c1009fc4f87fc0c0f47d30eb2a7c12c5c27c
https://github.com/llvm/llvm-project/commit/aec0c1009fc4f87fc0c0f47d30eb2a7c12c5c27c
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-10-16 (Sun, 16 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:
-----------
[ConstraintElim] Replace custom GEP index handling by using existing code
Instead of duplicating the existing decomposition code for GEP indices
just use the existing code by calling the existing decompose function on
the index expression and multiply the result's coefficients by the scale of
the index.
This both reduces code duplication and generalizes the pattern we can
handle.
More information about the All-commits
mailing list