mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 14:15:53 +00:00
not committing what you test = bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
225d4ca8ab
commit
bfcc8e0a66
@ -388,6 +388,8 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM) {
|
||||
}
|
||||
|
||||
case Instruction::GetElementPtr: {
|
||||
X86AddressMode SavedAM = AM;
|
||||
|
||||
// Pattern-match simple GEPs.
|
||||
uint64_t Disp = (int32_t)AM.Disp;
|
||||
unsigned IndexReg = AM.IndexReg;
|
||||
@ -425,7 +427,6 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM) {
|
||||
break;
|
||||
// Ok, the GEP indices were covered by constant-offset and scaled-index
|
||||
// addressing. Update the address state and move on to examining the base.
|
||||
X86AddressMode SavedAM = AM;
|
||||
AM.IndexReg = IndexReg;
|
||||
AM.Scale = Scale;
|
||||
AM.Disp = (uint32_t)Disp;
|
||||
|
Loading…
Reference in New Issue
Block a user