diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-26 21:18:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-26 21:18:37 +0000 |
commit | afab6592c6aa4653ab081a6871da2cd11f689898 (patch) | |
tree | bd66bf92a17230a8598a012d2a5852bafcbe087e /lib | |
parent | b31fb964f42d4b51d0a4c1e04a343741857d91cb (diff) | |
download | external_llvm-afab6592c6aa4653ab081a6871da2cd11f689898.zip external_llvm-afab6592c6aa4653ab081a6871da2cd11f689898.tar.gz external_llvm-afab6592c6aa4653ab081a6871da2cd11f689898.tar.bz2 |
make sure to propagate operand flags in SelectTLSADDRAddr properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 0203353..2efe3a2 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -1313,7 +1313,8 @@ bool X86DAGToDAGISel::SelectTLSADDRAddr(SDValue Op, SDValue N, SDValue &Base, AM.GV = GA->getGlobal(); AM.Disp += GA->getOffset(); AM.Base.Reg = CurDAG->getRegister(0, N.getValueType()); - + AM.SymbolFlags = GA->getTargetFlags(); + if (N.getValueType() == MVT::i32) { AM.Scale = 1; AM.IndexReg = CurDAG->getRegister(X86::EBX, MVT::i32); |