[dfsan] Propagate origin tracking at load
authorJianzhou Zhao <jianzhouzh@google.com>
Fri, 26 Feb 2021 19:41:49 +0000 (19:41 +0000)
committerJianzhou Zhao <jianzhouzh@google.com>
Wed, 3 Mar 2021 04:32:30 +0000 (04:32 +0000)
commitd866b9c99d0ae71c48a9e6c8849aacfba8200968
tree1a8947eed59a3e8375699e44092b54ec4c739c83
parent335375ef2c66408da751223d13758d14da248cd3
[dfsan] Propagate origin tracking at load

This is a part of https://reviews.llvm.org/D95835.

One issue is about origin load optimization: see the
comments of useCallbackLoadLabelAndOrigin

@gbalats This change may have some conflicts with your 8bit change. PTAL the change at visitLoad.

Reviewed By: morehouse, gbalats

Differential Revision: https://reviews.llvm.org/D97570
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
llvm/test/Instrumentation/DataFlowSanitizer/origin_ldst.ll [new file with mode: 0644]