This is an archive of the discontinued LLVM Phabricator instance.

[MSan] Shrink the register save area for non-SSE builds
ClosedPublic

Authored by glider on Aug 9 2018, 6:58 AM.

Details

Summary

If code is compiled for X86 without SSE support, the register save area doesn't contain FPU registers, so AMD64FpEndOffset should be equal to AMD64GpEndOffset.

Diff Detail

Event Timeline

glider created this revision.Aug 9 2018, 6:58 AM
glider updated this revision to Diff 159917.Aug 9 2018, 6:58 AM
glider updated this revision to Diff 159942.Aug 9 2018, 9:49 AM

Added a comment

eugenis accepted this revision.Aug 9 2018, 2:16 PM

Normally, this attribute is parsed in ParseSubtargetFeatures, which is tablegen-ed from target definitions. But it can not be used in a opt pass, I think.

This change is close enough. LGTM.

test/Instrumentation/MemorySanitizer/msan_basic.ll
935

Please remove unrelated attributes.

This revision is now accepted and ready to land.Aug 9 2018, 2:16 PM
glider closed this revision.Aug 10 2018, 1:07 AM

Landed r339414, thank you!