[PATCH] D63587: [AArch64][GlobalISel] Make s8 and s16 G_CONSTANTs legal
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 10:39:20 PDT 2019
arsenm added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h:73-76
+ APInt Val = CstVal.isImm()
+ ? APInt(DstTy.getSizeInBits(), CstVal.getImm())
+ : CstVal.getCImm()->getValue();
+ Val = Val.sext(DstTy.getSizeInBits());
----------------
I thought G_CONSTANT only allowed CImm sources.
You should be able to move the .sext() into the Cimm case instead of always applying it
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63587/new/
https://reviews.llvm.org/D63587
More information about the llvm-commits
mailing list