summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-02-14 21:10:34 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-02-14 21:10:34 +0000
commit728d4172df9a88dcb92795bf48d3d2ab5782b5dd (patch)
treecae349dce7ccdd7af8300588da3b563c55f2cd4d /llvm/lib
parent314bb7d8ebfc4066b17b736f163e90fbc4f14edd (diff)
downloadbcm5719-llvm-728d4172df9a88dcb92795bf48d3d2ab5782b5dd.tar.gz
bcm5719-llvm-728d4172df9a88dcb92795bf48d3d2ab5782b5dd.zip
TargetLowering: n * r where n > 2 should be an illegal addressing mode
llvm-svn: 201433
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index beaa9b9f740..00b551b66f4 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1420,6 +1420,8 @@ bool TargetLoweringBase::isLegalAddressingMode(const AddrMode &AM,
return false;
// Allow 2*r as r+r.
break;
+ default: // Don't allow n * r
+ return false;
}
return true;
OpenPOWER on IntegriCloud