diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-02 22:33:24 +0000 | 
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-02 22:33:24 +0000 | 
| commit | f3dd6da7a8cf55be5ce493a1f4388650035c626c (patch) | |
| tree | bd0204d57f414aa83ddc0fac57a5c265773669ff /llvm/lib/Target/X86/X86FastISel.cpp | |
| parent | 4efb6b35f65ca570fa0c747485fd243cac13e254 (diff) | |
| download | bcm5719-llvm-f3dd6da7a8cf55be5ce493a1f4388650035c626c.tar.gz bcm5719-llvm-f3dd6da7a8cf55be5ce493a1f4388650035c626c.zip | |
Don't fast-isel for atomic load/store; some cases require extra handling missing from fast-isel.
llvm-svn: 139044
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index f5db6d28a24..452b215071f 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -658,6 +658,10 @@ bool X86FastISel::X86SelectCallAddress(const Value *V, X86AddressMode &AM) {  /// X86SelectStore - Select and emit code to implement store instructions.  bool X86FastISel::X86SelectStore(const Instruction *I) { +  // Atomic stores need special handling. +  if (cast<StoreInst>(I)->isAtomic()) +    return false; +    MVT VT;    if (!isTypeLegal(I->getOperand(0)->getType(), VT, /*AllowI1=*/true))      return false; @@ -780,6 +784,10 @@ bool X86FastISel::X86SelectRet(const Instruction *I) {  /// X86SelectLoad - Select and emit code to implement load instructions.  ///  bool X86FastISel::X86SelectLoad(const Instruction *I)  { +  // Atomic loads need special handling. +  if (cast<LoadInst>(I)->isAtomic()) +    return false; +    MVT VT;    if (!isTypeLegal(I->getType(), VT, /*AllowI1=*/true))      return false; | 

