diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 9b784b4449..38aa994a25 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -71,6 +71,8 @@ bool X86FastISel::X86SelectConstAddr(Value *V, X86AddressMode AM; AM.GV = GV; addFullAddress(BuildMI(MBB, TII.get(Opc), Op0), AM); + // Prevent loading GV stub multiple times in same MBB. + LocalValueMap[V] = Op0; } return true; } |