[llvm-dev] Unaligned atomic load/store (original) (raw)
Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Sat Aug 26 05:52:51 PDT 2017
- Previous message: [llvm-dev] Unaligned atomic load/store
- Next message: [llvm-dev] Unaligned atomic load/store
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Aug 26, 2017 at 08:31:30PM +0800, Dr. ERDI Gergo via llvm-dev wrote:
This trips up the following assertion in CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:
if (I.getAlignment() < VT.getSizeInBits() / 8) reportfatalerror("Cannot generate unaligned atomic load");
I've tried commenting out the check and llc finishes, generating not-obviously-wrong machine code, so there doesn't seem to be anything further downstream breaking because of this. So my questions are: * What is the purpose of this assertion?
Existing targets so far simply don't support unaliged atomic ops. That's why it hasn't been refactored into a target information hook.
Joerg
- Previous message: [llvm-dev] Unaligned atomic load/store
- Next message: [llvm-dev] Unaligned atomic load/store
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]