Resolve implicit alignment before computing the FoldingSet information so
authorDan Gohman <gohman@apple.com>
Mon, 4 Jun 2007 15:49:41 +0000 (15:49 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 4 Jun 2007 15:49:41 +0000 (15:49 +0000)
commit575e2f4ea874deae3af8a940f30df5348d272190
tree375903c3e65232de80bf8db79301b0b62de2d5ae
parent69bdf68fe6a30759791d4003ea92c7c4bffee1ac
Resolve implicit alignment before computing the FoldingSet information so
that the CSE map always contains explicit alignment information. This allows
more loads to be CSE'd when there is a mix of explicit-alignment loads and
implicit-alignment loads.

Also, in SelectionDAG::FindModifiedNodeSlot, add the operands to the
FoldingSetNodeID before the load/store information instead of after, so
that it matches what is done elsewhere.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37411 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp