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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | ||
---|---|---|
580 | Coding style: You may skip the braces here. |
Comment Actions
LGTM, just give the test a good name.
llvm/test/Transforms/SeparateConstOffsetFromGEP/pr45371.ll | ||
---|---|---|
6 ↗ | (On Diff #253962) | Can we have a name for this file and this function that's a little more self explanatory? If it weren't attached to this commit I would have no idea what's being tested. |
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | ||
---|---|---|
580 | Haven't seen (m)any braceless if's with a comment inside them. Happy to reword and drop them though. | |
llvm/test/Transforms/SeparateConstOffsetFromGEP/pr45371.ll | ||
6 ↗ | (On Diff #253962) | It's not uncommon to name tests after their corresponding bugzilla number: $ find llvm/test/ -name "pr[0-9]*.ll" | wc -l 791 Suggestions on a better function name? |
Coding style: You may skip the braces here.