]> granicus.if.org Git - llvm/commit
[LSR] If no Use is interesting, early return.
authorTim Shen <timshen91@gmail.com>
Fri, 13 Jul 2018 23:40:00 +0000 (23:40 +0000)
committerTim Shen <timshen91@gmail.com>
Fri, 13 Jul 2018 23:40:00 +0000 (23:40 +0000)
commitc31e75d1995c44d4bd80c5e41c73a6c29528adc7
tree9bbebc67ce7a0c486a29a848ae56b5d783c0d305
parent7cd0250e8e6d7abb1cb62346a34877fda9624625
[LSR] If no Use is interesting, early return.

Summary:
By looking at the callers of getUse(), we can see that even though
IVUsers may offer uses, but they may not be interesting to
LSR. It's possible that none of them is interesting.

Reviewers: sanjoy

Subscribers: jlebar, hiraditya, bixia, llvm-commits

Differential Revision: https://reviews.llvm.org/D49049

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337072 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/lsr-crash-empty-uses.ll [new file with mode: 0644]