search for: isnarrowingprofit

Displaying 1 result from an estimated 1 matches for "isnarrowingprofit".

2010 Oct 07
0
[LLVMdev] Patch: Don't do unprofitable narrowing of loads.
...g copy) @@ -1899,7 +1899,9 @@ else bestOffset = (uint64_t)offset * (width/8); bestMask = Mask.lshr(offset * (width/8) * 8); - bestWidth = width; + EVT NewVT = EVT::getIntegerVT(*DAG.getContext(), width); + if (isNarrowingProfitable(Lod->getMemoryVT(), NewVT)) + bestWidth = width; break; } newMask = newMask << width;