[NFC][SCEV] SCEVExpander::isHighCostExpansionHelper(): check that we processed expres...
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 25 Feb 2020 18:51:06 +0000 (21:51 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 25 Feb 2020 20:05:57 +0000 (23:05 +0300)
commit1622f3e074cb72feadd6f9d32f21d2030d3bdc47
tree9cefc4c0b8f0a66b614785c531dc10d9f0bd20db
parentb99c91a0872f4b7b7e482c40818bbdda4c967bd5
[NFC][SCEV] SCEVExpander::isHighCostExpansionHelper(): check that we processed expression first

Summary:
As far as i can tell this is still NFC.
Initially in rL146438 it was added at the top of the function,
later rL238507 dethroned it, and rL244474 did it again.

I'm not sure if we have already checked the cost of this expansion, we should be doing that again.

Reviewers: reames, mkazantsev, wmi, sanjoy, atrick, igor-laevsky

Reviewed By: mkazantsev

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73706
llvm/lib/Analysis/ScalarEvolutionExpander.cpp