Do not mark llvm.return, llvm.br, llvm.cond_br operations as having no side effects.
authorMehdi Amini <aminim@google.com>
Sun, 7 Apr 2019 21:34:31 +0000 (14:34 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 8 Apr 2019 01:22:46 +0000 (18:22 -0700)
commitf9c4c60320ef54b007421ffa48b9c058c7ba962c
tree283859f35c3712e1d48d0a7251b592ded55eaa75
parentfea056081626443a0f5b462c49d42b48762c369d
Do not mark llvm.return, llvm.br, llvm.cond_br operations as having no side effects.

    The canonicalizer is taking advantage of this to kill them.

--

PiperOrigin-RevId: 242374166
mlir/include/mlir/LLVMIR/LLVMOps.td
mlir/test/LLVMIR/terminator.mlir [new file with mode: 0644]