[ConstraintElimination] Decompose GEP with arbitrary offsets.
authorFlorian Hahn <flo@fhahn.com>
Wed, 18 Nov 2020 11:45:26 +0000 (11:45 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 19 Nov 2020 22:49:21 +0000 (22:49 +0000)
commit7fa14a7c690e8789d964c0d8246e2b3763c4d080
treef1e4da235b84c0353a73700ef9866d26159bc803
parentdfe67f450ef60ce7bd3528b3e2d4326e6ac598ea
[ConstraintElimination] Decompose GEP with arbitrary offsets.

This patch decomposes `GEP %x, %offset` as  0 + 1 * %x + 1 * %off.
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/test/Transforms/ConstraintElimination/geps.ll