[cfe-users] floor is vectorized, but sin, cos exp are not

2018-12-17 Thread Klaus Leppkes via cfe-users
Hi, according to the doc (https://releases.llvm.org/7.0.0/docs/Vectorizers.html) floor, sin, cos should be vectorized. I can confirm (using the great https://gcc.godbolt.org/ tool) that using the flags "-Ofast -mavx2  -fopenmp -ffast-math" the right avx2 opcode (vroundps) is emited for floo

[cfe-users] floor is vectorized, but not sin, cos or exp

2018-12-11 Thread Klaus Leppkes via cfe-users
Hi, according to the doc (https://releases.llvm.org/7.0.0/docs/Vectorizers.html) floor, sin, cos should be vectorized. I can confirm (using the great https://gcc.godbolt.org/ tool) that using the flags "-Ofast -mavx2  -fopenmp -ffast-math" the right avx2 opcode (vroundps) is emited for floo

[cfe-users] Question about ASTContext::getParents(): How to avoid empty list return?

2016-12-10 Thread Klaus Leppkes via cfe-users
Hi, my problem is that in some cases ASTContext::getParents() returns an empty list, reproducible with release_38 and 39, so I think it's not a bug and I missed an important point. a) To understand the problem: In which cases does getParents() return an empty list and in which is doesn't? b) Is