[llvm] Count CallInst Arguments Attributes to reduce unnecessary extension (PR #73501)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 05:47:49 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)) {
----------------
arsenm wrote:

Yes, and change I->users to I->uses 

https://github.com/llvm/llvm-project/pull/73501


More information about the llvm-commits mailing list