[all-commits] [llvm/llvm-project] f79e6a: [MemCpyOptimizer] Simplify API of processStore and...
jayfoad via All-commits
all-commits at lists.llvm.org
Thu Jun 11 04:48:31 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f79e6a8847aa330cac6837168d02f6b319024858
https://github.com/llvm/llvm-project/commit/f79e6a8847aa330cac6837168d02f6b319024858
Author: Jay Foad <jay.foad at amd.com>
Date: 2020-06-11 (Thu, 11 Jun 2020)
Changed paths:
M llvm/include/llvm/Transforms/Scalar/MemCpyOptimizer.h
M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Log Message:
-----------
[MemCpyOptimizer] Simplify API of processStore and processMem* functions
Previously these functions either returned a "changed" flag or a "repeat
instruction" flag, and could also modify an iterator to control which
instruction would be processed next.
Simplify this by always returning a "changed" flag, and handling all of
the "repeat instruction" functionality by modifying the iterator.
No functional change intended except in this case:
// If the source and destination of the memcpy are the same, then zap it.
... where the previous code failed to process the instruction after the
zapped memcpy.
Differential Revision: https://reviews.llvm.org/D81540
More information about the All-commits
mailing list