This is a part of https://reviews.llvm.org/D95835.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | ||
---|---|---|
1554 | We can avoid this AND operation entirely by including it in the shadow mask. |
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | ||
---|---|---|
1554 | Yeah. ~0x700...0003 works. It seems that the problem is we wanted to get both shadow and origin addresses. So
offset = addr & ~0x700...00
offset_s = addr & ~0x700...00 So the case 1 actually uses 1 less IR instruction in most cases. |
We can avoid this AND operation entirely by including it in the shadow mask.