[Test] Fix tests showing generation of already existent PHIs by GVN
authorDmitry Makogon <dmakogon@azul.com>
Mon, 1 Nov 2021 11:51:30 +0000 (18:51 +0700)
committerDmitry Makogon <dmakogon@azul.com>
Mon, 1 Nov 2021 11:56:11 +0000 (18:56 +0700)
commitce12e68a4944056fe87083664c3586286e39e6b1
tree37c515c48d8d84c1e4446b4b377fec52ab82adf3
parent0b83a18a2b9db9c23082e8751c3a66ef37fc626f
[Test] Fix tests showing generation of already existent PHIs by GVN

This is a fix for tests added by 96591a14cd25bc30519c293efa8e01b4c7e869f6.
A function which was called in tests wasn't marked as 'readonly', and the
GVN performed PRE for the loads, but they were supposed to be non-local.
So added 'readonly' to the called function.
llvm/test/Transforms/GVN/gvn-eliminate-duplicating-phis.ll