[InstCombine] Call simplifyInsertValueInst()
authorNikita Popov <npopov@redhat.com>
Thu, 16 Feb 2023 08:47:14 +0000 (09:47 +0100)
committerNikita Popov <npopov@redhat.com>
Thu, 16 Feb 2023 08:51:40 +0000 (09:51 +0100)
commitc9fad20f6a6641249b303df9921771d0481bae7d
treeccf611a2bddd266aeee28e57c14bd4b17ffe2e61
parent6bec2c30777fe1f6192417c5c4e8881ffca0d090
[InstCombine] Call simplifyInsertValueInst()

InstCombine is supposed to be a superset of InstSimplify, but we
were not attempting simplification of insertvalue instructions.
As the test change illustrates, we failed to remove some aggregate
construction patterns because of that.
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/aggregate-reconstruction.ll