[SCEV][IndVars] Always provide insertion point to the SCEVExpander::isHighCostExpansion()
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 25 Feb 2020 18:53:12 +0000 (21:53 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 25 Feb 2020 20:05:59 +0000 (23:05 +0300)
commit400ceda425ab392096ff2800acad41a4322974d2
treeafa6f4c4a0ed8ead0440dba12078359d54ae27e7
parent44edc6fd2c63b7db43e13cc8caf1fee79bebdb5f
[SCEV][IndVars] Always provide insertion point to the SCEVExpander::isHighCostExpansion()

Summary: This addresses the `llvm/test/Transforms/IndVarSimplify/elim-extend.ll` `@nestedIV` regression from D73728

Reviewers: reames, mkazantsev, wmi, sanjoy

Reviewed By: mkazantsev

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73777
llvm/include/llvm/Analysis/ScalarEvolutionExpander.h
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/test/Transforms/IndVarSimplify/elim-extend.ll