[ConstantFold] Allow all float types in reinterpret load folding
authorNikita Popov <npopov@redhat.com>
Fri, 21 Jan 2022 08:23:41 +0000 (09:23 +0100)
committerNikita Popov <npopov@redhat.com>
Fri, 21 Jan 2022 08:26:51 +0000 (09:26 +0100)
commitb4900296e4a51b0076bac69b31871c7a29efa90f
treedbb028c7c912da8dd528114c520c0f1f767305ab
parent3f9d1f516e19cc9548cf17ec60b73300d4ab8360
[ConstantFold] Allow all float types in reinterpret load folding

Rather than hardcoding just half, float and double, allow all
floating point types.
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Transforms/InstSimplify/ConstProp/loads.ll