[llvm-commits] [llvm] r68082 - /llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Chris Lattner
clattner at apple.com
Mon Mar 30 18:38:50 PDT 2009
On Mar 30, 2009, at 6:13 PM, Evan Cheng wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=68082&view=rev
> Log:
> X86 address mode isel tweak. If the base of the address is also used
> by a CopyToReg (i.e. it's likely live-out), do not fold the sub-
> expressions into the addressing mode to avoid computing the address
> twice. The CopyToReg use will be isel'ed to a LEA, re-use it for
> address instead.
Ok.
> + for (SDNode::use_iterator UI = N.getNode()->use_begin(),
> + UE = N.getNode()->use_end(); UI != UE; ++UI) {
> + if (UI->getOpcode() == ISD::CopyToReg) {
How about turning this into a "isUsedByCopyToRegNode" predicate?
-Chris
More information about the llvm-commits
mailing list