isSafeToLoadUnconditionally currently assumes sized types. Bail out for now.
This fixes a TypeSize warning reachable from instcombine via (load (select
cond, ptr, ptr)).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/Loads.cpp | ||
---|---|---|
411 | Here you're still relying upon the implicit cast from TypeSize->uint64_t, which we're trying to avoid. I think it's better to write this explicitly as: APInt Size(DL.getIndexTypeSizeInBits(V->getType()), TySize.getFixedValue()); | |
llvm/test/Transforms/InstCombine/scalable-select.ll | ||
20 | This test is missing some CHECK lines |
Here you're still relying upon the implicit cast from TypeSize->uint64_t, which we're trying to avoid. I think it's better to write this explicitly as: