[PATCH] D87174: [GlobalISel] Add `X,Y<dead> = G_UNMERGE Z` -> X = G_TRUNC Z
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 11:52:16 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:1686
+ Register TmpReg =
+ Builder.buildTrunc(LLT::scalar(Dst0Ty.getSizeInBits()), SrcReg)
+ .getReg(0);
----------------
can use auto and avoid .getReg(0)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87174/new/
https://reviews.llvm.org/D87174
More information about the llvm-commits
mailing list