[PATCH] D78010: [CodeGen] Add a new parameter SkipDuplicated for copyImplicitOps()

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 21:10:28 PDT 2020


lkail added a comment.

> For now, copyImplicitOps will blindly copy all the implicit ops no matter if we already have that implicit op. My understanding is that, we won't have any benefit if there is duplicate implicit operands. As this is a helper function to copy the implicit operands, I would suggest that, don't add a new parameter, just don't do the copy if it has. Does it make sense ?

I think it should apply to most register-based targets, I have no idea if it applies to stack-based targets, like webassembly.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78010





More information about the llvm-commits mailing list