Folding a GEP from outside to inside a loop will materialize an add where there wasn't an equivalent operation before. Check the containing loops before making this fold.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Failing "task-dependency.c" test looks like unrelated flakiness. Observed it pass/failing randomly in local testing.
Comment Actions
Hm, i thought i commented here, but alas not. LGTM.
I suspect while we want to merge this, it's only half of the story - what if LICM didn't run yet?
We need some kind of an undo transform. (and no, SeparateConstOffsetFromGEP doesn't help, i tried)
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | ||
---|---|---|
2137 |
Comment Actions
Thank you for the review. Could I please ask someone to commit, with --author="Chang-Sun Lin, Jr. <chang-sun.lin.jr@intel.com>"?