[PATCH] D61879: WIP: Prototype of DSE optimizations for -ftrivial-auto-var-init
Alexander Potapenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 5 06:25:59 PDT 2019
glider added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreEliminationExp.cpp:709
+ size_t argN) {
+ const Function *F = cast<Function>(Callee);
+ if (argN >= F->arg_size())
----------------
This cast fails in the following case:
```
%21 = call i64 @probe_kernel_read(i8* nonnull %9, i8* %20, i64 8) #10, !dbg !7740
```
, where the callee is declared as:
```
@probe_kernel_read = weak hidden alias i64 (i8*, i8*, i64), i64 (i8*, i8*, i64)* @__probe_kernel_read
```
When building Android kernel with LTO enabled, the gold plugin crashes on an assertion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61879/new/
https://reviews.llvm.org/D61879
More information about the cfe-commits
mailing list