[PATCH] D58929: [LoopRotate] fix crash encountered with callbr

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 15:17:47 PST 2019


nickdesaulniers created this revision.
nickdesaulniers added reviewers: craig.topper, jyknight.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

While implementing inlining support for callbr
(https://bugs.llvm.org/show_bug.cgi?id=40722), I hit a crash in Loop
Rotation when trying to build the entire x86 Linux kernel
(drivers/char/random.c). This is a small fix up to r353563.

Test case is drivers/char/random.c (with callbr's inlined), then ran
through creduce, then `opt -opt-bisect-limit=<limit>`, then bugpoint.

Thanks to Craig Topper for immediately spotting the fix, and teaching me
how to fish.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D58929

Files:
  llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
  llvm/test/Transforms/LoopRotate/callbr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58929.189216.patch
Type: text/x-patch
Size: 3940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190304/abab28f0/attachment.bin>


More information about the llvm-commits mailing list