Implement two virtual functions in SPUTargetLowering.
authorKalle Raiskila <kalle.raiskila@nokia.com>
Thu, 7 Oct 2010 16:24:35 +0000 (16:24 +0000)
committerKalle Raiskila <kalle.raiskila@nokia.com>
Thu, 7 Oct 2010 16:24:35 +0000 (16:24 +0000)
commit8a52fa674b78ff0fdc04b1bf1124aa57c007f8ff
tree82c5c2923b991dcf94772e2cb4b40c726e443222
parent86c3647ddfa8c39ed5d9eba9f2547544270c7bde
Implement two virtual functions in SPUTargetLowering.

Before the implementation of isLegalAddressingMode, some rare cases
of code were miscompiled if optimized with the LoopStrengthReduce pass.
It is unclear (to me) if LSR is "allowed" to produce wrong code with a
bad TargetLowering, or if the bug is elsewhere and this patch just
hides it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115919 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CellSPU/SPUISelLowering.cpp
lib/Target/CellSPU/SPUISelLowering.h