summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-26 01:59:55 +0000
committerEric Christopher <echristo@apple.com>2010-05-26 01:59:55 +0000
commite805ea9e39d6d1cc22d9c59b57db851005aa471f (patch)
tree5652bae3fc13d5f9eee77a6d99aeab66f97402cc /llvm/lib/CodeGen/SelectionDAG
parenta6897ecbb5e106f37528df75feba6d390d3a7109 (diff)
downloadbcm5719-llvm-e805ea9e39d6d1cc22d9c59b57db851005aa471f.tar.gz
bcm5719-llvm-e805ea9e39d6d1cc22d9c59b57db851005aa471f.zip
Temporarily revert r104655 as it's breaking the bots.
llvm-svn: 104664
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7e40cb9c640..6d789a674cf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -25,7 +25,6 @@
#include "llvm/Intrinsics.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/LLVMContext.h"
-#include "llvm/Module.h"
#include "llvm/CodeGen/FastISel.h"
#include "llvm/CodeGen/GCStrategy.h"
#include "llvm/CodeGen/GCMetadata.h"
@@ -254,39 +253,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
done:;
}
- // Set a flag indicating if the machine function makes a call to setjmp /
- // sigsetjmp (i.e., a function marked "returns_twice"). We'll use this to
- // disable certain optimizations which cannot handle such control flows.
- //
- // FIXME: This goes beyond the setjmp/sigsetjmp functions. We should check for
- // the GCC "returns twice" attribute.
- const Module *M = Fn.getParent();
- const Function *SetJmp = M->getFunction("setjmp");
- const Function *SigSetJmp = M->getFunction("sigsetjmp");
- bool HasReturnsTwiceCall = false;
-
- if (SetJmp || SigSetJmp) {
- if (SetJmp && !SetJmp->use_empty())
- for (Value::const_use_iterator
- I = SetJmp->use_begin(), E = SetJmp->use_end(); I != E; ++I)
- if (const CallInst *CI = dyn_cast<CallInst>(I))
- if (CI->getParent()->getParent() == &Fn) {
- HasReturnsTwiceCall = true;
- break;
- }
-
- if (!HasReturnsTwiceCall && SigSetJmp && !SigSetJmp->use_empty())
- for (Value::const_use_iterator
- I = SigSetJmp->use_begin(), E = SigSetJmp->use_end(); I != E; ++I)
- if (const CallInst *CI = dyn_cast<CallInst>(I))
- if (CI->getParent()->getParent() == &Fn) {
- HasReturnsTwiceCall = true;
- break;
- }
-
- mf.setReturnsTwiceCall(HasReturnsTwiceCall);
- }
-
// Release function-specific state. SDB and CurDAG are already cleared
// at this point.
FuncInfo->clear();
OpenPOWER on IntegriCloud