We only need to be conservative about the alignment of LDRD on older CPUs.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Does the patch actually affect the given test-case? I would have expected thumbv7-apple-darwin to have ABIAlignment of 4 anyway.
test/CodeGen/Thumb2/thumb2-ldrd.ll | ||
---|---|---|
5 | Is "foo" really any better than "t"? I say either go for a proper rename that gives some hint of what's being tested or leave it as-is. The best way to check for a function start is "CHECK-LABEL: my_function:" (note the colon at the end). |
Comment Actions
Hmm indeed, I performed my original experiments with an "thumbv7--" triple which has alignment 8 and copied the code to that existing testcase later. So maybe the ABI alignment 8 is a good enough (even though very unintuitive) indicator of whether ldrd on 4 byte aligned data makes sense.
Abandoning this patch, it seems the codegen problems I am looking for are somewhere else.
Is "foo" really any better than "t"? I say either go for a proper rename that gives some hint of what's being tested or leave it as-is.
The best way to check for a function start is "CHECK-LABEL: my_function:" (note the colon at the end).