[llvm-commits] [llvm] r44467 - in /llvm/trunk: include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/LiveIntervalAnalysis.cpp test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll

Chris Lattner clattner at apple.com
Fri Nov 30 14:59:39 PST 2007


On Nov 30, 2007, at 1:23 PM, Evan Cheng wrote:

> +  // FIXME: It may be possible to fold load when there are  
> multiple uses.
> +  // e.g. On x86, TEST32rr r, r -> CMP32rm [mem], 0
> +  if (NumUses > 1)
> +    return false;

Maybe it would be better for the target foldMemoryOperand hook to  
handle this?

Is there any hope of autogenerating foldMemoryOperand from the .td  
files?  If so, that would be easy to add.

-Chris



More information about the llvm-commits mailing list