[LLVMdev] Confusion about excessive reads in the PowerPC assembly generated by LLVM

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jun 15 22:19:43 PDT 2011


On Jun 15, 2011, at 9:32 PM, don wrote:

> All of this makes me think that I am just plain not using the compiler right.  Here is how I compiled it:
> ........./llvm-gcc -emit-llvm -c test.c -o test.bc
> ./llc -march=ppc32 -mattr=altivec -O3 test.bc -o test.s

You are not running the mid-level optimizers. Either run the bitcode through opt or pass -O3 to llvm-gcc.

/jakob





More information about the llvm-dev mailing list