[PATCH] D127279: [SelectionDAG] Handle bzero/memset libcalls globally instead of per target

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 05:20:05 PDT 2022


gchatelet added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/arm64_32.ll:738
 ; CHECK-DAG: lsr x1, x0, #32
-; CHECK-DAG: and x0, x0, #0xffffffff
-; CHECK: bl _bzero
+; CHECK: b _bzero
 
----------------
courbet wrote:
> Why is this not a noop ?
The `CHECK-DAG: and x0, x0, #0xffffffff` should still be tested so I reverted it.

`bl` is changed into a `b` because we now propagate tailcall for `bzero`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127279



More information about the llvm-commits mailing list