<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi all,
<div><br>
</div>
<div>I'm trying to get the llvm's IR from the source code of Polybench (OMP) https://github.com/cavazos-lab/PolyBench-ACC/tree/master/OpenMP.</div>
<div><br>
</div>
<div>I noticed a considerable difference between the IR generated using <i>clang -emit-llvm -fopenmp</i> and
<i>clang -emit-llvm</i>: </div>
<div>
<ul style="font-family: Tahoma; font-size: 10pt;">
<li>using the -fopenmp flag I get a simplified IR in which I read a single basic block where I can highlight a llvm.memcpy function</li><li>without -fopenmp flag I get the expected IR in which I find a large number of basic blocks (e.g. for loop --> for.begin, for.end ...)</li></ul>
<span style="font-size: 13.3333px;">Is there a way to avoid the insertion of llvm.memcpy when I'm using the -fopenmp flag?</span></div>
<div><span style="font-size: 13.3333px;">I've already tried -fno-builtin and -ffreestanding.</span></div>
<div><br>
</div>
<div>Thanks,</div>
<div>Best Regards,</div>
<div>Stefano Corda</div>
</div>
</body>
</html>