[ScopHelper] Provide support for recognising collective invariant loads
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 29 Jun 2018 07:29:45 +0000 (07:29 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 29 Jun 2018 07:29:45 +0000 (07:29 +0000)
commitec1a3048a30dd86d33b2ebdc475d767743aca049
tree40c8956c1c2508ffe05f3ef7fbd737c935aac771
parent63e68acbc3a2f819f9fb1774e232127367b667cb
[ScopHelper] Provide support for recognising collective invariant loads

Summary: This patch aims to provide support for detecting load patterns which are collectively invariant but right now `isHoistableLoad()` is checking each load instruction individually which cannot detect the load pattern as a whole.

Patch by: Sahil Girish Yerawar

Reviewers: bollu, philip.pfaffe, Meinersbur

Reviewed By: philip.pfaffe, Meinersbur

Differential Revision: https://reviews.llvm.org/D48026

llvm-svn: 335949
polly/include/polly/Support/ScopHelper.h
polly/lib/Analysis/ScopDetection.cpp
polly/lib/Support/ScopHelper.cpp
polly/test/ScopDetect/collective_invariant_loads.ll [new file with mode: 0644]