[LICM] Add tests for future hoisting of fence instructions [NFC]
authorPhilip Reames <listmail@philipreames.com>
Thu, 9 Aug 2018 04:21:02 +0000 (04:21 +0000)
committerPhilip Reames <listmail@philipreames.com>
Thu, 9 Aug 2018 04:21:02 +0000 (04:21 +0000)
commit954eab1087ea48b6276ceb4d6d44425c715c3834
treefb4e9a6f4ba0b80d10bbedd2e4b85eb1d98f63d2
parent3f270336e1c4e69ead7d7f78e3d2f9c1d859f40d
[LICM] Add tests for future hoisting of fence instructions [NFC]

The main interesting case is a fence in an otherwise dead loop or one containing only arithmetic.  This can happen as a result of DSE or other transforms from seemingly reasonable initial IR.

llvm-svn: 339310
llvm/test/Transforms/LICM/fence.ll [new file with mode: 0644]