[PATCH] D74101: [BPF] implement isTruncateFree in BPFTargetLowering

Alexei Starovoitov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 13:48:41 PST 2020


ast requested changes to this revision.
ast added a comment.
This revision now requires changes to proceed.

I suspect isZExtFree() is also necessary.
BPF implementation probably should be similar to aarch64.
In isTruncateFree() do 
return NumBits1 > NumBits2;
and in isZExtFree() do:
return NumBits1 == 32 && NumBits2 == 64;


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74101





More information about the llvm-commits mailing list