[InstCombine][SVE] Bail out of isSafeToLoadUnconditionally for scalable types
authorPeter Waller <peter.waller@arm.com>
Mon, 11 Jul 2022 10:56:15 +0000 (10:56 +0000)
committerPeter Waller <peter.waller@arm.com>
Wed, 13 Jul 2022 10:07:36 +0000 (10:07 +0000)
commit8acf74fd562619be3218df412b0c1b7d89f6ed30
treeb1dddd37aaf1a5d2830934db05724156e4d6a95c
parent2edb32a0357fc92419730d1cf711aa5282104f22
[InstCombine][SVE] Bail out of isSafeToLoadUnconditionally for scalable types

`isSafeToLoadUnconditionally` currently assumes sized types. Bail out for now.
This fixes a TypeSize warning reachable from instcombine via (load (select
cond, ptr, ptr)).

Differential Revision: https://reviews.llvm.org/D129477
llvm/lib/Analysis/Loads.cpp
llvm/test/Transforms/InstCombine/scalable-select.ll