[PATCH] D86468: [WIP][GlobalISel] CSE copies
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 09:27:56 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp:168-172
+ if (Dst.getDstOpKind() == DstOp::DstType::Ty_LLT &&
+ Dst.getLLTTy(*getMRI()) == Src.getLLTTy(*getMRI())) {
+ Register SrcReg = Src.getReg();
+ assert(SrcReg.isVirtual());
+ return MachineInstrBuilder(getMF(), getMRI()->getVRegDef(SrcReg));
----------------
This would also have to be careful to not fold away cross class or bank copies
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86468/new/
https://reviews.llvm.org/D86468
More information about the llvm-commits
mailing list