Rollback of parts of D71213. After digging more into the code I think we should leave 0 when creating the instructions (CreateMemcpy, CreateMaskedStore, CreateMaskedLoad). It's probably fine for MemorySanitizer because Alignement is resolved but I'm having a hard time convincing myself it has no impact at all (although tests are passing).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 42282 Build 42719: arc lint + arc unit
Event Timeline
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
2925 | getValueOr(0) ? Here and below. |
Comment Actions
Thx
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
2925 | Unfortunately no, getValueOr() takes an Align which by definition can't be 0. |
getValueOr(0) ? Here and below.