[llvm-bugs] [Bug 45067] New: clang crashes when compiling tensorflow

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 29 21:47:18 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=45067

            Bug ID: 45067
           Summary: clang crashes when compiling tensorflow
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: craig.topper at gmail.com
          Reporter: manojgupta at google.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llozano at chromium.org,
                    llvm-bugs at lists.llvm.org, manojgupta at google.com,
                    richard-llvm at metafoo.co.uk

After https://reviews.llvm.org/rG84cd968f75bbd6e0fbabecc29d2c1090263adec7, we
are noticing a clang crash when building Tensorflow.

Craig, since it was your change, can you please check?

repro command:
clang "-cc1" "-triple" "x86_64-cros-linux-gnu" "-emit-obj"   "-target-cpu"
"skylake" "-target-feature" "+sse" "-target-feature" "+sse2" "-O2"
"-vectorize-loops" "-vectorize-slp" "-x" "c++" "reduced.cpp"  -Wno-error

test case:

struct TfLiteNode;
struct TfLiteContext;
using a = int;
float b;
namespace tflite {
int c();
int *d;
a e;
namespace ops {
namespace builtin {
namespace activations {
template <typename> void f(int, int, float, int *) {
  int g = c();
  static a h;
  for (int i = 0; i < g; ++i)
    if (e)
      d[i] = h;
}
void LeakyReluEval(TfLiteContext *, TfLiteNode *j) {
  f<int>(0, 0, b, reinterpret_cast<int *>(j));
}
} // namespace activations
} // namespace builtin
} // namespace ops
} // namespace tflite

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200301/731cd2c7/attachment.html>


More information about the llvm-bugs mailing list