[PATCH] D150388: [CodeGen]Allow targets to use target specific COPY instructions for live range splitting

Asmaa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 10:26:46 PDT 2023


asmok-g added a comment.



> Yes, this would just crash. You want:
>
>      std::optional<DestSourcePair> isCopyInstr(const MachineInstr &MI) const {
>      if (MI.isCopy()) {
>       return DestSourcePair{MI.getOperand(0), MI.getOperand(1)};
>     return std::nullopt;
>   }

With this, the test case passes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150388



More information about the llvm-commits mailing list