[InstCombine] Fixed non-determinisctic order of new instructions
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 28 Oct 2021 19:14:02 +0000 (12:14 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 28 Oct 2021 19:14:02 +0000 (12:14 -0700)
commitf7f430c9136330545637aaddebf013da05c0f370
tree0c20bf68df679d6900514d12e4b0a2902fdcd3bb
parent5a7a458306cdab6ba534822b4c46c6a209ff26d9
[InstCombine] Fixed non-determinisctic order of new instructions

Fixes non-determinisctic order of XOR instructions created after
5a7a458306cd. The order of call argument evaluation is not
defined, so create one Value before the call.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp