Divide the primitive size in bits by eight so the initial load's alignment is in bytes as expected. Tested with the included unit test.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Differential D11783
Fix an alignment error in `llvm::expandAtomicRMWToCmpXchg`. DiamondLovesYou on Aug 5 2015, 2:46 PM. Authored by
Details
Divide the primitive size in bits by eight so the initial load's alignment is in bytes as expected. Tested with the included unit test.
Diff Detail
Event Timeline |
In a separate patch please also make this atomic! The comment above says that's what the generated code does... but it's not :-)