Merge pull request #12835 from wanderview/shared-tvm-append

Bug 918179: Optimize append case in tag_visibility_monitor.  r=djf
(cherry picked from commit ea967f79e5f29e752b9abb4df14fc334946560a0)