[ConstraintElimination] Fix variables used for pattern matching.
authorFlorian Hahn <flo@fhahn.com>
Sun, 14 Feb 2021 18:06:09 +0000 (18:06 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sun, 14 Feb 2021 18:42:37 +0000 (18:42 +0000)
commit3df5d5aace0e61592ffa8e9b950d86099228e77d
tree9dc0ff8341338b2c59c1dcc082c59055958845eb
parentf197cf2126be3b224cadfe8b1cde9c05f638a0ea
[ConstraintElimination] Fix variables used for pattern matching.

Re-using the matched variable in the pattern does not work as expected.
This patch fixes that by introducing a new variable for the 2nd level
match.
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/test/Transforms/ConstraintElimination/geps.ll