projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54e2b14
)
Fix a bug in PPCTargetLowering::isLegalAddressingMode, scales other than 0/1/2
author
Chris Lattner
<sabre@nondot.org>
Mon, 9 Apr 2007 22:10:05 +0000
(22:10 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 9 Apr 2007 22:10:05 +0000
(22:10 +0000)
are always unsupported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35835
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelLowering.cpp
b/lib/Target/PowerPC/PPCISelLowering.cpp
index 4b2d448d34307fb8ffaa693c8fd9d56c86ee5142..13ab52abd4b2fcaa7e2961158ecb65c0bb3556b0 100644
(file)
--- a/
lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/
lib/Target/PowerPC/PPCISelLowering.cpp
@@
-3389,6
+3389,9
@@
bool PPCTargetLowering::isLegalAddressingMode(const AddrMode &AM,
return false;
// Allow 2*r as r+r.
break;
+ default:
+ // No other scales are supported.
+ return false;
}
return true;