Go to file
Tobias Grosser c59b3ce044 [BlockGenerator] Also eliminate dead code not originating from BB
After having generated the code for a ScopStmt, we run a simple dead-code
elimination that drops all instructions that are known to be and remain unused.
Until this change, we only considered instructions for dead-code elimination, if
they have a corresponding instruction in the original BB that belongs to
ScopStmt. However, when generating code we do not only copy code from the BB
belonging to a ScopStmt, but also generate code for operands referenced from BB.
After this change, we now also considers code for dead code elimination, which
does not have a corresponding instruction in BB.

This fixes a bug in Polly-ACC where such dead-code referenced CPU code from
within a GPU kernel, which is possible as we do not guarantee that all variables
that are used in known-dead-code are moved to the GPU.

llvm-svn: 278103
2016-08-09 08:59:05 +00:00
clang Revert "[Attr] Add support for the `ms_hook_prologue` attribute." 2016-08-08 21:19:08 +00:00
clang-tools-extra [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
compiler-rt [Profile] Implement new API __llvm_profile_dump 2016-08-09 04:21:14 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Make min follow the OCL 1.0 specs 2016-07-25 22:36:22 +00:00
libcxx Remove *super* old test suite results doc for Linux and Windows. 2016-08-09 03:05:43 +00:00
libcxxabi Add lib directory to linker paths when using libunwind 2016-08-09 00:27:19 +00:00
libunwind Allow building both shared and static library 2016-08-08 22:55:48 +00:00
lld Remove unreachable `return`. NFC. 2016-08-09 04:50:26 +00:00
lldb Garbage collection is not around anymore, we can remove our support for it. 2016-08-08 22:48:57 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm [X86] Reduce duplicated code in the execution domain lookup functions by passing tables as an argument. 2016-08-09 05:26:09 +00:00
openmp Fix linking of omp_foreign_thread_team_reuse test on FreeBSD 2016-08-08 18:34:05 +00:00
parallel-libs [StreamExecutor] Add DeviceMemory and kernel arg packing 2016-08-08 16:45:19 +00:00
polly [BlockGenerator] Also eliminate dead code not originating from BB 2016-08-09 08:59:05 +00:00