[PATCH] D49049: [LSR] If no Use is interesting, early return.

Tim Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 13 16:42:00 PDT 2018


timshen added inline comments.


================
Comment at: llvm/test/CodeGen/X86/lsr-crash-empty-uses.ll:1
+; RUN: llc --start-before loop-reduce --stop-after loop-reduce %s -o - | FileCheck %s
+target triple = "x86_64-unknown-linux-gnu"
----------------
timshen wrote:
> sanjoy wrote:
> > Can't you run LSR directly using `opt`?
> It's weird. When I switch to opt it doesn't crash.
LSR has lots of target-specific logic, so maybe it makes sense to use llc in this case.


https://reviews.llvm.org/D49049





More information about the llvm-commits mailing list