[InstCombine][ConstantFolding] Make ConstantFoldLoadThroughBitcast TypeSize-aware
authorPeter Waller <peter.waller@arm.com>
Thu, 28 Oct 2021 12:14:52 +0000 (12:14 +0000)
committerPeter Waller <peter.waller@arm.com>
Thu, 28 Oct 2021 12:15:15 +0000 (12:15 +0000)
commit98f08752f76b80a509037986d620b402c48f5115
tree1c86a3c2beed1bf9c5ade965a024f72f8703e20b
parent0a2708d2ae572b394ebe35b66ebc58143b9f40bf
[InstCombine][ConstantFolding] Make ConstantFoldLoadThroughBitcast TypeSize-aware

The newly added test previously caused the compiler to fail an
assertion. It looks like a strightforward TypeSize upgrade.

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D112142
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Transforms/InstCombine/vscale_load.ll [new file with mode: 0644]