search for: bestwidth

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

2010 Oct 07
0
[LLVMdev] Patch: Don't do unprofitable narrowing of loads.
...- CodeGen/SelectionDAG/TargetLowering.cpp (revision 115815) +++ CodeGen/SelectionDAG/TargetLowering.cpp (working 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;