This is an archive of the discontinued LLVM Phabricator instance.

Take memset_inline into account in analyzeLoadFromClobberingMemInst
ClosedPublic

Authored by gchatelet on Oct 26 2022, 2:36 AM.

Diff Detail

Event Timeline

gchatelet created this revision.Oct 26 2022, 2:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 2:36 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
gchatelet requested review of this revision.Oct 26 2022, 2:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 2:36 AM
courbet accepted this revision.Oct 26 2022, 2:38 AM
courbet added inline comments.
llvm/lib/Transforms/Utils/VNCoercion.cpp
359

nit: if (const auto* memset_inst = dyn_cast<MemSetInst>(MI)) to avoid the redundant cast below ?

This revision is now accepted and ready to land.Oct 26 2022, 2:38 AM
gchatelet updated this revision to Diff 470759.Oct 26 2022, 2:46 AM
gchatelet marked an inline comment as done.
  • Address comments

Thx for the review.

This revision was landed with ongoing or failed builds.Oct 26 2022, 2:50 AM
This revision was automatically updated to reflect the committed changes.
thieta added a subscriber: thieta.Oct 26 2022, 9:23 AM

Should we have a test case as well maybe?