Comments (5)
+1 for using TBAA. I can handle it later, once the rest of the code is in.
Original comment by [email protected]
on 19 Nov 2012 at 12:48
from memory-sanitizer.
Humm... what if you just explicitly move the load below the branch? It looks
like the way to go. Then the compiler does not need to figure out anything.
Original comment by [email protected]
on 19 Nov 2012 at 12:56
from memory-sanitizer.
tbaa is the general mechanism, if we can reply on it and save a bit of code in
our phase -- we should
Original comment by [email protected]
on 19 Nov 2012 at 1:04
from memory-sanitizer.
Yes, there must be a lot of other optimization possibilities suppressed by this
issue. Asan may benefit from tbaa, too.
Original comment by [email protected]
on 19 Nov 2012 at 1:14
from memory-sanitizer.
It seems like llvm (and gcc, too) simply does not do this optimization.
See an example:
int f(bool z, long long* y, long long* y1, int* p, int* p1) {
long long x = *y;
*p1 = 0;
if (__builtin_expect(z, 0)) {
*y1 = x;
}
return 2;
}
I could not make any of the compilers move the load of (*y) under if().
Original comment by [email protected]
on 22 Nov 2012 at 11:12
from memory-sanitizer.
Related Issues (20)
- Support a module name blacklist to selectively disable interceptor checks
- Make track-origins a run-time decision
- False positive on fcvt() result HOT 1
- Missing origin in memmove()
- Origin tracking is not async signal safe HOT 4
- Feature - dump region around uninitialized memory as a fallback to origin tracing HOT 1
- Intercept syscall() HOT 1
- Remove __msan_allocated_memory from stack trace
- Intercept memcmp() HOT 1
- blacklist does not seem to work for interceptor functions HOT 9
- rorw fails with an MSan report when the argument is uninitialized (r217949) HOT 2
- Better reports for intrinsics, inline asm
- Possible false positive when memory sanitizing GoogleTest HOT 4
- Handle _mm_clmulepi64_si128
- Install a SIGSEGV handler in MSan HOT 1
- MsanReallocate does not handle origins correctly HOT 3
- Inefficient function prologue HOT 1
- Missing origin for "undef"
- Ultra-compatible memory mapping HOT 5
- Get rid of getCleanOrigin() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memory-sanitizer.