[llvm] [llvm][ARM]Add widen global arrays pass (PR #107120)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 12:48:43 PDT 2024


================
@@ -2043,9 +2043,13 @@ static bool callInstIsMemcpy(CallInst *CI) {
 }
 
 static bool destArrayCanBeWidened(CallInst *CI) {
+  auto *GV = dyn_cast<GlobalVariable>(CI->getArgOperand(0));
----------------
davemgreen wrote:

getArgOperand(1)

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


More information about the llvm-commits mailing list