Fix XCoreTargetLowering::isLegalAddressingMode() to handle VoidTy.
authorRichard Osborne <richard@xmos.com>
Fri, 26 Feb 2010 16:44:51 +0000 (16:44 +0000)
committerRichard Osborne <richard@xmos.com>
Fri, 26 Feb 2010 16:44:51 +0000 (16:44 +0000)
commitd712783492b2bdd55b8cc8f513794d33da86de6b
tree8160d626d07361f7579fdc4b8b94b76d15a68efe
parent727cf62123c2f55f26fdc5ee70e350641be4162e
Fix XCoreTargetLowering::isLegalAddressingMode() to handle VoidTy.
Previously LoopStrengthReduce would sometimes be unable to find
a legal formula, causing an assertion failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97226 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreISelLowering.cpp
test/CodeGen/XCore/2010-02-25-LSR-Crash.ll [new file with mode: 0644]