[GlobalOpt] Drop bitcast handling in global to alloca fold
authorNikita Popov <npopov@redhat.com>
Thu, 2 Mar 2023 16:10:42 +0000 (17:10 +0100)
committerNikita Popov <npopov@redhat.com>
Thu, 2 Mar 2023 16:12:00 +0000 (17:12 +0100)
commit82f2ce7eb98030f18656a24adf80b667ef666b45
tree53eb17290e3732809c963f8684dd744f88b4d81e
parente277d6adf8c1555a6125561dffe61743d726b2b0
[GlobalOpt] Drop bitcast handling in global to alloca fold

Pointer bitcasts no longer occur with opaque pointers -- and in
this case not handling them allows us to drop the code for
promoting constant expressions to instructions as well.
llvm/lib/Transforms/IPO/GlobalOpt.cpp