[SCEV] SCEVExpander::isHighCostExpansion(): assert if TTI is not provided
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 25 Feb 2020 18:51:12 +0000 (21:51 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 25 Feb 2020 20:05:57 +0000 (23:05 +0300)
commit2d8275d72e1602a1869e6286b0ffbf9034ab102b
tree4590e0b61eccc1d34141618cd521abfe2eb3d38a
parent1622f3e074cb72feadd6f9d32f21d2030d3bdc47
[SCEV] SCEVExpander::isHighCostExpansion(): assert if TTI is not provided

Summary:
Currently, as per `check-llvm`, we never call `SCEVExpander::isHighCostExpansion()` with null TTI,
so this appears to be a safe restriction.

Reviewers: reames, mkazantsev, wmi, sanjoy

Reviewed By: mkazantsev

Subscribers: javed.absar, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73712
llvm/include/llvm/Analysis/ScalarEvolutionExpander.h
llvm/lib/Analysis/ScalarEvolutionExpander.cpp