[llvm-commits] [llvm] r56802 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp
Dan Gohman
gohman at apple.com
Mon Sep 29 14:13:16 PDT 2008
Author: djg
Date: Mon Sep 29 16:13:15 2008
New Revision: 56802
URL: http://llvm.org/viewvc/llvm-project?rev=56802&view=rev
Log:
Fix an over-pessimization about GlobalVariable addresses in X86FastISel.
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=56802&r1=56801&r2=56802&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Mon Sep 29 16:13:15 2008
@@ -462,7 +462,7 @@
}
// If all else fails, try to materialize the value in a register.
- if (!AM.GV && getTargetMachine()->symbolicAddressesAreRIPRel()) {
+ if (!AM.GV || !getTargetMachine()->symbolicAddressesAreRIPRel()) {
if (AM.Base.Reg == 0) {
AM.Base.Reg = getRegForValue(V);
return AM.Base.Reg != 0;
More information about the llvm-commits
mailing list