This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Disable strcmp->memcmp transform for MSan.
ClosedPublic

Authored by morehouse on Sep 19 2018, 12:00 PM.

Details

Summary

The strcmp->memcmp transform can make the resulting memcmp read
uninitialized data, which MSan doesn't like.

Resolves https://github.com/google/sanitizers/issues/993.

Diff Detail

Repository
rL LLVM

Event Timeline

morehouse created this revision.Sep 19 2018, 12:00 PM
eugenis accepted this revision.Sep 19 2018, 12:35 PM

LGTM, thanks!

This revision is now accepted and ready to land.Sep 19 2018, 12:35 PM
This revision was automatically updated to reflect the committed changes.