[InstCombine] Call simplifyLoadInst()
authorNikita Popov <npopov@redhat.com>
Wed, 15 Feb 2023 11:14:55 +0000 (12:14 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 20 Feb 2023 09:49:44 +0000 (10:49 +0100)
commitbe88b5814d9efce131dbc0c8e288907e2e6c89be
tree8ae2e50f91f4c619eca92ffa6c78a360078770be
parent9196908bc2c080b987326fdf1d9d8bfcac5c402d
[InstCombine] Call simplifyLoadInst()

InstCombine is supposed to be a superset of InstSimplify, but
failed to invoke load simplification.

Unfortunately, this causes a minor compile-time regression, which
will be mitigated in a future commit.
llvm/include/llvm/Analysis/InstructionSimplify.h
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/test/Transforms/InstCombine/load.ll
llvm/test/Transforms/InstCombine/memcpy-from-global.ll