[llvm] Move ExpandMemCmp and MergeIcmp to the middle end (PR #77370)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 08:05:15 PDT 2026
================
@@ -864,13 +864,8 @@ void TargetPassConfig::addIRPasses() {
addPass(createLoopTermFoldPass());
}
- // The MergeICmpsPass tries to create memcmp calls by grouping sequences of
- // loads and compares. ExpandMemCmpPass then tries to expand those calls
- // into optimally-sized loads and compares. The transforms are enabled by a
- // target lowering hook.
- if (!DisableMergeICmps)
- addPass(createMergeICmpsLegacyPass());
- addPass(createExpandMemCmpLegacyPass());
+ // MergeICmps and ExpandMemCmp now run in the middle-end optimization
+ // pipeline (see PassBuilderPipelines.cpp). They are no longer needed here.
----------------
nikic wrote:
Same here, I don't think we need this comment.
https://github.com/llvm/llvm-project/pull/77370
More information about the llvm-commits
mailing list