This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: Do not memset if following stores will overwrite entire variable
AbandonedPublic

Authored by vitalybuka on Jul 8 2019, 10:56 PM.

Details

Reviewers
eugenis
pcc
jfb
Summary

In some cases llvm::getMostFrequentByte can't analyze a
constant so we write zeros and then override the rest with stores.
These zeros are not needed and we can keep only stores.