Page MenuHomePhabricator

[SVE] Move INT_TO_FP i1 promotion into custom lowering.
AcceptedPublic

Authored by paulwalker-arm on Oct 24 2020, 3:32 AM.

Details

Summary

AddPromotedToType is being used to legalise INT_TO_FP operations
when the source is a predicate. The point where this introduces
vector extends might cause problems in the future so this patch
falls back to manual promotion within custom lowering.

Diff Detail

Unit TestsFailed

TimeTest
420 mslinux > HWAddressSanitizer-x86_64.TestCases::sizes.cpp
Script: -- : 'RUN: at line 3'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang --driver-mode=g++ -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp -nostdlib++ -lstdc++ -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp

Event Timeline

paulwalker-arm created this revision.Oct 24 2020, 3:32 AM
paulwalker-arm requested review of this revision.Oct 24 2020, 3:32 AM

I've created this patch so as to be consistent with D87651.

kmclaughlin accepted this revision.Fri, Nov 13, 10:24 AM
This revision is now accepted and ready to land.Fri, Nov 13, 10:24 AM