summaryrefslogtreecommitdiff
path: root/lib/Target/X86/PeepholeOptimizer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-17 06:24:02 +0000
committerChris Lattner <sabre@nondot.org>2004-02-17 06:24:02 +0000
commit7ddc3fbd2293dbca74f35b37892e7366c4ebf4f3 (patch)
tree6cfb401f0679fa25566d0a50c32dbc7b0c7cefa4 /lib/Target/X86/PeepholeOptimizer.cpp
parentf120ebbf8a8aa17d6ef31aacb1c53413bcf97e25 (diff)
downloadllvm-7ddc3fbd2293dbca74f35b37892e7366c4ebf4f3.tar.gz
llvm-7ddc3fbd2293dbca74f35b37892e7366c4ebf4f3.tar.bz2
llvm-7ddc3fbd2293dbca74f35b37892e7366c4ebf4f3.tar.xz
Fix the last crimes against nature that used the 'ir' ordering to use the
'ri' ordering instead... no it's not possible to store a register into an immediate! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/PeepholeOptimizer.cpp')
-rw-r--r--lib/Target/X86/PeepholeOptimizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/PeepholeOptimizer.cpp b/lib/Target/X86/PeepholeOptimizer.cpp
index 7bc2ec2a3c..77f4a67620 100644
--- a/lib/Target/X86/PeepholeOptimizer.cpp
+++ b/lib/Target/X86/PeepholeOptimizer.cpp
@@ -395,7 +395,7 @@ bool SSAPH::OptimizeAddress(MachineInstr *MI, unsigned OpNo) {
}
break;
- case X86::SHLir32:
+ case X86::SHLri32:
// If this shift could be folded into the index portion of the address if
// it were the index register, move it to the index register operand now,
// so it will be folded in below.
@@ -413,7 +413,7 @@ bool SSAPH::OptimizeAddress(MachineInstr *MI, unsigned OpNo) {
// Attempt to fold instructions used by the index into the instruction
if (MachineInstr *DefInst = getDefiningInst(IndexRegOp)) {
switch (DefInst->getOpcode()) {
- case X86::SHLir32: {
+ case X86::SHLri32: {
// Figure out what the resulting scale would be if we folded this shift.
unsigned ResScale = Scale * (1 << DefInst->getOperand(2).getImmedValue());
if (isValidScaleAmount(ResScale)) {