[PATCH] D152145: [InstSimplify] Fold all global variables with initializers

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 05:43:57 PDT 2023


nikic added inline comments.


================
Comment at: llvm/test/Transforms/LowerConstantIntrinsics/objectsize_basic.ll:156
+;
+  %size = call i32 @llvm.objectsize.i32.p0(ptr @gv_objectsize, i1 false, i1 false, i1 false)
+  ret i32 %size
----------------
Can you please add another test with `min=true`?

And another that uses an extern_weak global with nullunknown=true/false?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152145/new/

https://reviews.llvm.org/D152145



More information about the llvm-commits mailing list