[PATCH] D90391: [gvn] PRE needs to skip convergent intrinsics/calls.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 08:05:34 PDT 2020


hliao added inline comments.


================
Comment at: llvm/test/Transforms/GVN/pre-skip-convergent.ll:1
+; RUN: opt -S -gvn -o - %s | FileCheck %s
+
----------------
jdoerfert wrote:
> mkazantsev wrote:
> > Please commit this test without your patch with auto-generated checks (`utils/update_test_checks.py`), then rebase on top of it to show what your patch changes.
> You probably also want to add a run line for the new pass manager `-passes=...`, assuming we run this code in the new PM. (Ignore this if we don't).
with this patch, we won't PRE that call into convergent intrinsic `@llvm.convergent` in `merge` block into `pre` block as it won't function correctly.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90391/new/

https://reviews.llvm.org/D90391



More information about the llvm-commits mailing list