diff options
author | Dan Gohman <sunfish@google.com> | 2014-02-14 11:37:06 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@google.com> | 2014-02-14 11:38:16 -0800 |
commit | 8e79a39877f2127481a0c31b8c310353330daeae (patch) | |
tree | 28c323b320f9ee2f858d8fa8c11a30343f2de60c /lib/Target | |
parent | 4e87a5bfe9cc2da6b89de4f0d348388f8f8e3249 (diff) |
Don't try to nativize aggregate allocas.
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/JSBackend/JSBackend.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp index ea642163e3..b204026ff0 100644 --- a/lib/Target/JSBackend/JSBackend.cpp +++ b/lib/Target/JSBackend/JSBackend.cpp @@ -2083,6 +2083,7 @@ void JSWriter::calculateNativizedVars(const Function *F) { const Instruction *I = &*II; if (const AllocaInst *AI = dyn_cast<const AllocaInst>(I)) { if (AI->getAllocatedType()->isVectorTy()) continue; // we do not nativize vectors, we rely on the LLVM optimizer to avoid load/stores on them + if (AI->getAllocatedType()->isAggregateType()) continue; // we do not nativize aggregates either // this is on the stack. if its address is never used nor escaped, we can nativize it bool Fail = false; for (Instruction::const_use_iterator UI = I->use_begin(), UE = I->use_end(); UI != UE && !Fail; ++UI) { |