[ConstraintElimination] Decompose a few more GEP indices.
authorFlorian Hahn <flo@fhahn.com>
Mon, 8 Feb 2021 17:28:34 +0000 (17:28 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 8 Feb 2021 18:06:38 +0000 (18:06 +0000)
commit68dc90b3472de440118e76ed2e2cd99ae593b072
treec8fe9478cab7f93527aa477d80123ff398318d3b
parentb7b4f4cbc3a6d2a3ea49aa47ef600271dc4fb19f
[ConstraintElimination] Decompose a few more GEP indices.

This patch adds handling for zero-extended GEP indices.
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/test/Transforms/ConstraintElimination/gep-arithmetic.ll
llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-pointer-cmps.ll
llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-cmps.ll