[PATCH] D81229: Correctly report modified status for MemCpyOptimizer
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 06:33:16 PDT 2020
foad added a comment.
Sorry for the late review, but I think the code is getting really confusing now: processMemCpy returns a "repeat instruction" flag, but sometimes returns true, but also increments BI so that the instruction is not repeated at al???
How about changing all of processMemSet/Cpy/Move so that they return a simple "changed" flag, and set BI to the next instruction to be processed (i.e. either the current instruction if we want to repeat it, otherwise the next instruction).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81229/new/
https://reviews.llvm.org/D81229
More information about the llvm-commits
mailing list