It seems incorrect to use TTI data in some places, and override it in others.
In this case, TTI says that extractvalue are free, yet we bill them.
While this doesn't address https://bugs.llvm.org/show_bug.cgi?id=50099 yet,
it reduces the cost from 55 to 50 while the threshold is 45.
Just question: this check is also in visitInstruction so maybe you can just return visitInstruction(I)?