Skip to content
Commit 11c8efd4 authored by Erik Desjardins's avatar Erik Desjardins Committed by Mircea Trofin
Browse files

[Inline] Introduce Constant::hasOneLiveUse, use it instead of hasOneUse in...

[Inline] Introduce Constant::hasOneLiveUse, use it instead of hasOneUse in inline cost model (PR51667)

Otherwise, inlining costs may be pessimized by dead constants.

Fixes https://bugs.llvm.org/show_bug.cgi?id=51667.

Reviewed By: mtrofin, aeubanks

Differential Revision: https://reviews.llvm.org/D109294
parent 3a5aa57c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment