[PATCH] D86432: [SVE] Fix TypeSize related warnings with IR truncates of scalable vectors
Francesco Petrogalli via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 06:20:23 PDT 2020
fpetrogalli added inline comments.
================
Comment at: llvm/include/llvm/Analysis/TargetTransformInfoImpl.h:456
+ if (!DstSize.isScalable() && DL.isLegalInteger(DstSize.getFixedSize()))
return 0;
break;
----------------
How comes that the test that uses scalable vectors on `trunc` is reporting zero? afaict, if we enter this methods with `trunc of scalable vectors` the cost reported by the function should be 1, no?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86432/new/
https://reviews.llvm.org/D86432
More information about the llvm-commits
mailing list