diff options
author | Alexander Potapenko <glider@google.com> | 2018-03-19 10:03:47 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2018-03-19 10:03:47 +0000 |
commit | 014ff63f24c5c5b659fdc7ae0a627a2b508e2edc (patch) | |
tree | c0f38c35a2d0dfa23eb21ada1deeb868c63d9ade /llvm/lib/Support/Path.cpp | |
parent | e0bafb4359cd0f623e29f481f818a9a053080232 (diff) | |
download | llvm-014ff63f24c5c5b659fdc7ae0a627a2b508e2edc.zip llvm-014ff63f24c5c5b659fdc7ae0a627a2b508e2edc.tar.gz llvm-014ff63f24c5c5b659fdc7ae0a627a2b508e2edc.tar.bz2 |
[MSan] Don't create zero offsets in getShadowPtrForArgument(). NFC
For MSan instrumentation with MS.ParamTLS and MS.ParamOriginTLS being
TLS variables, the CreateAdd() with ArgOffset==0 is a no-op, because
the compiler is able to fold the addition of 0.
But for KMSAN, which receives ParamTLS and ParamOriginTLS from a call
to the runtime library, this introduces a stray instruction which
complicates reading/testing the IR.
Differential revision: https://reviews.llvm.org/D44514
llvm-svn: 327829
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions