[PATCH] D108306: [GlobalISel] Avoid creating COPY in LegalizationArtifactCombiner
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 20 14:35:28 PDT 2021
aemerson added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h:135
+ SextSrc = Builder.buildSExtOrTrunc(DstTy, SextSrc).getReg(0);
+ if (TruncSrc && (DstTy != MRI.getType(TruncSrc)))
+ TruncSrc = Builder.buildAnyExtOrTrunc(DstTy, TruncSrc).getReg(0);
----------------
should this be `else if`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108306/new/
https://reviews.llvm.org/D108306
More information about the llvm-commits
mailing list