[llvm] Count CallInst Arguments Attributes to reduce unnecessary extension (PR #73501)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 19:37:13 PST 2023
================
@@ -69,6 +69,20 @@ static ISD::NodeType getPreferredExtendForValue(const Instruction *I) {
NumOfSigned += CI->isSigned();
NumOfUnsigned += CI->isUnsigned();
}
+ if (const auto *CallI = dyn_cast<CallInst>(U)) {
----------------
zengdage wrote:
I have changed `CallInst` to `CallBase`, and switch the loop to be over `Use &`.
https://github.com/llvm/llvm-project/pull/73501
More information about the llvm-commits
mailing list