[GISel][NFC]: Add unit test for clarifying CSE behavior
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 11 Jun 2020 19:29:12 +0000 (12:29 -0700)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 11 Jun 2020 19:49:41 +0000 (12:49 -0700)
commit6239d67001843722cb5d6e08d4368492fa5dbd9e
treec415afc729dae766fcb1ed2820e582a93b1abe6d
parentc08ea0771682de45964dc10759d6a57ce65c482d
[GISel][NFC]: Add unit test for clarifying CSE behavior

Add a unit test that shows how CSE works if we install an observer
at the machine function level and not use the CSEMIRBuilder to build
instructions.

https://reviews.llvm.org/D81625
llvm/unittests/CodeGen/GlobalISel/CSETest.cpp