[PATCH] D87140: [GlobalISel] Avoid making G_PTR_ADD with nullptr

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 07:12:35 PDT 2020


foad added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/GlobalISel/translate-gep.ll:11
   ; CHECK:   [[COPY:%[0-9]+]]:_(s64) = COPY $x0
   ; CHECK:   [[C:%[0-9]+]]:_(p0) = G_CONSTANT i64 0
+  ; CHECK:   [[INTTOPTR:%[0-9]+]]:_(p0) = G_INTTOPTR [[COPY]](s64)
----------------
Can you avoid generating this unused constant in the first place?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87140



More information about the llvm-commits mailing list