[LLVMdev] Question about anti-dependence breaker
Haishan
hndxvon at 163.com
Wed Oct 9 06:17:23 PDT 2013
hi,
I have few question about breaking anti-dependence of postRAScheduler in LLVM.
when I use command line "clang -target arm -mcpu=cortex-a8 -O2 -integrated-as -c test.c -o test.o"
and get objdump file as follows:
ldrr1, [r0,#16]----(1
str r1, [r0,#32]----(2
ldr r1, [r0,#12]----(3
str r1, [r0,#36]----(4
ldr r1, [r0,#08]----(5
str r1, [r0,#40]----(6
However, I expect that instruction pairs (1,2), (3,4) and (5,6) use different registers after postRAScheduler pass.
Then, I find that postRAScheduler only handle anti-dependence mode after debug LLVM source code.
More while I use gcc to compile test.c and get expected result.
Is it this compiler's drawbacks? Is any developer doing this function?
it's my pleasure if any suggestion.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131009/4829f127/attachment.html>
More information about the llvm-dev
mailing list