Revert "[LICM] Hoist loads with invariant.group metadata"
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 8 May 2021 12:42:11 +0000 (15:42 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 8 May 2021 12:44:49 +0000 (15:44 +0300)
commit1acd9a1a29ac30044ecefb6613485d5d168f66ca
tree54691c292cd13db634db164f3309defb6ef81a21
parent4e192edb2d6544e4cf6e0b1b5abfc32aee08b65e
Revert "[LICM] Hoist loads with invariant.group metadata"

This appears to miscompile google benchmark's GetCacheSizesFromKVFS()
when compiling with -fstrict-vtable-pointers.
Runnable reproducer: https://godbolt.org/z/f9ovKqTzb
The "f.fail()" crashes with BUS error, it is compiled into testb,
and the adress it is testing is non-sensical.

This reverts commit 4c89bcadf6cae8320a1925eb9cbeb8c8c1f5f58b.
llvm/lib/Transforms/Scalar/LICM.cpp
llvm/test/Transforms/LICM/invariant.group.ll [deleted file]