llvm-project/llvm/test/Analysis/CostModel
Arnold Schwaighofer 90774f3c8f ARM cost model: Increase the cost for vector casts that use the stack
Increase the cost of v8/v16-i8 to v8/v16-i32 casts and truncates as the backend
currently lowers those using stack accesses.

This was responsible for a significant degradation on
MultiSource/Benchmarks/Trimaran/enc-pc1/enc-pc1
where we vectorize one loop to a vector factor of 16. After this patch we select
a vector factor of 4 which will generate reasonable code.

unsigned char cle[32];

void test(short c) {
  unsigned short compte;
  for (compte = 0; compte <= 31; compte++) {
    cle[compte] = cle[compte] ^ c;
  }
}

radar://13220512

llvm-svn: 176898
2013-03-12 21:19:22 +00:00
..
ARM ARM cost model: Increase the cost for vector casts that use the stack 2013-03-12 21:19:22 +00:00
PowerPC Refine fix to bug 15041. 2013-02-08 18:19:17 +00:00
X86 X86 cost model: Adjust cost for custom lowered vector multiplies 2013-03-02 04:02:52 +00:00
lit.local.cfg
no_info.ll Make opt grab the triple from the module and use it to initialize the target machine. 2013-01-01 08:00:32 +00:00