diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-02-14 21:10:34 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-02-14 21:10:34 +0000 |
commit | 728d4172df9a88dcb92795bf48d3d2ab5782b5dd (patch) | |
tree | cae349dce7ccdd7af8300588da3b563c55f2cd4d /llvm/lib | |
parent | 314bb7d8ebfc4066b17b736f163e90fbc4f14edd (diff) | |
download | bcm5719-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.cpp | 2 |
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; |