[PATCH] D139415: [RFC][WebAssembly] Optimize GEPs

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 10:14:06 PST 2022


dschuff added inline comments.


================
Comment at: llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp:455
+  // Modify GetElementPtr before LoopStrengthReduce.
+  if (getOptLevel() != CodeGenOpt::None)
+    addPass(createWebAssemblyOptimizeGEPs());
----------------
Does this pass fix up debug info when necessary?
If feasible, it should; but if not, maybe we should restrict it to CodeGenOpt::Default and higher.


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

https://reviews.llvm.org/D139415



More information about the llvm-commits mailing list