[OpenMP] Use assumptions during ICV tracking
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 24 Nov 2020 19:38:55 +0000 (13:38 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 15 Dec 2020 22:51:34 +0000 (16:51 -0600)
commitdcaec81211be973364cf7830a3db63781e15a474
treed7783c4f06e986803e619c1a4bfbd92912b6c111
parentb9c77542e23756967e77dc42412effc41257a850
[OpenMP] Use assumptions during ICV tracking

The OpenMP 5.1 assumptions `no_openmp` and `no_openmp_routines` allow us
to ignore calls that would otherwise prevent ICV tracking.

Once we track more ICVs we might need to distinguish the ones that could
be impacted even with `no_openmp_routines`.

Reviewed By: sstefan1

Differential Revision: https://reviews.llvm.org/D92050
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/icv_tracking.ll