1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Fix a obscure post-indexed load / store dag combine bug.

llvm-svn: 31537
This commit is contained in:
Evan Cheng 2006-11-08 02:38:55 +00:00
parent bd39c99fd1
commit e50f5e4c05

View File

@ -338,7 +338,7 @@ namespace {
SDOperand Offset;
ISD::MemOpAddrMode AM = ISD::UNINDEXED;
if (TLI.getPostIndexedAddressParts(Op, VT, BasePtr, Offset, AM,DAG) &&
BasePtr.Val == Ptr.Val) {
BasePtr == Ptr) {
// Try turning it into a post-indexed load / store except when
// 1) Op must be independent of N, i.e. Op is neither a predecessor
// nor a successor of N. Otherwise, if Op is folded that would