[ConstantFold] Simplify type check in reinterpret load folding (NFC)
authorNikita Popov <npopov@redhat.com>
Fri, 21 Jan 2022 08:06:35 +0000 (09:06 +0100)
committerNikita Popov <npopov@redhat.com>
Fri, 21 Jan 2022 08:06:35 +0000 (09:06 +0100)
commit05cd9a0596d8d2cc4fdb1d1dfa0957968aceaf92
tree892252c4adf1d5e59607064e4d58cc682890478b
parenta99e06aa869b44588a18a423f58e0ab30c292d8e
[ConstantFold] Simplify type check in reinterpret load folding (NFC)

Keep a list of allowed types, but then always construct the map
type the same way. We need an integer with the same width as the
original type.
llvm/lib/Analysis/ConstantFolding.cpp