Sink dag combine's post index load / store code that swap base ptr and index into...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 18 May 2010 21:31:17 +0000 (21:31 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 18 May 2010 21:31:17 +0000 (21:31 +0000)
commit28dad2a5caccf579f7430acd3af8fa6e6f8b575e
tree8056974c55bb6c857ba84db6a3347c263b89a436
parent011c3f110bca748db66e437924f936a62f1969bf
Sink dag combine's post index load / store code that swap base ptr and index into the target hook. Only the target knows whether the swap is safe. In Thumb2 mode, the offset must be an immediate. rdar://7998649

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104060 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/2010-05-18-PostIndexBug.ll [new file with mode: 0644]