[PhaseOrdering] add tests for bittest patterns from bitfields; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 1 May 2018 20:53:44 +0000 (20:53 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 1 May 2018 20:53:44 +0000 (20:53 +0000)
commit2b36e95d451368a3839953135d44af4eca0e3ff4
treec11216ea4b0ec0df1caa709f231dbe8cf66ac40a
parent78536664386887a26157fa90fceb003edbe80290
[PhaseOrdering] add tests for bittest patterns from bitfields; NFC

As mentioned in D45986, there's a potential ordering dependency
between instcombine and aggressive-instcombine for detecting these,
so I'm adding a few tests to confirm that the expected folds occur
using -O3 (because aggressive-instcombine only runs at -O3 currently).

llvm-svn: 331308
llvm/test/Transforms/PhaseOrdering/bitfield-bittests.ll [new file with mode: 0644]