[all-commits] [llvm/llvm-project] 1148f0: Fix PR45371: SeparateConstOffsetFromGEP clean up b...
Jon Roelofs via All-commits
all-commits at lists.llvm.org
Wed Apr 1 11:38:40 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1148f004fa35f1b74942bb1f578763d9dd79aa4a
https://github.com/llvm/llvm-project/commit/1148f004fa35f1b74942bb1f578763d9dd79aa4a
Author: Jonathan Roelofs <jroelofs at jroelofs.com>
Date: 2020-04-01 (Wed, 01 Apr 2020)
Changed paths:
M llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
A llvm/test/Transforms/SeparateConstOffsetFromGEP/pr45371-find-either-reset.ll
Log Message:
-----------
Fix PR45371: SeparateConstOffsetFromGEP clean up bookkeeping
find() was altering the UserChain, even in cases where it subsequently
discovered that the resulting constant was a 0. This confuses
rebuildWithoutConstOffset() when it attempts to walk the chain later, since it
is expected that the chain itself be a path down the use-def edges of an
expression.
More information about the All-commits
mailing list