summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/optimization-remark-options.c
Commit message (Collapse)AuthorAgeFilesLines
* [ValueTracking] Enabling ValueTracking patch by default (recommit). Part 1.Nikolai Bozhenov2017-08-101-1/+1
| | | | | | | | | | | | | | | The original patch was an improvement to IR ValueTracking on non-negative integers. It has been checked in to trunk (D18777, r284022). But was disabled by default due to performance regressions. Perf impact has improved. The patch would be enabled by default. Reviewers: reames, hfinkel Differential Revision: https://reviews.llvm.org/D34101 Patch by: Olga Chupina <olga.chupina@intel.com> llvm-svn: 310582
* Add a loop's debug location to its llvm.loop metadataHal Finkel2016-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Getting accurate locations for loops is important, because those locations are used by the frontend to generate optimization remarks. Currently, optimization remarks for loops often appear on the wrong line, often the first line of the loop body instead of the loop itself. This is confusing because that line might itself be another loop, or might be somewhere else completely if the body was an inlined function call. This happens because of the way we find the loop's starting location. First, we look for a preheader, and if we find one, and its terminator has a debug location, then we use that. Otherwise, we look for a location on an instruction in the loop header. The fallback heuristic is not bad, but will almost always find the beginning of the body, and not the loop statement itself. The preheader location search often fails because there's often not a preheader, and even when there is a preheader, depending on how it was formed, it sometimes carries the location of some preceeding code. I don't see any good theoretical way to fix this problem. On the other hand, this seems like a straightforward solution: Put the debug location in the loop's llvm.loop metadata. When emitting debug information, this commit causes us to add the debug location as an operand to each loop's llvm.loop metadata. Thus, we now generate this metadata for all loops (not just loops with optimization hints) when we're otherwise generating debug information. The remark test case changes depend on the companion LLVM commit r270771. llvm-svn: 270772
* Improve options printed on vectorization analysis diagnostics.Tyler Nowicki2015-08-271-2/+2
| | | | | | | | | | | The LLVM patch changes the analysis diagnostics produced when loops with floating-point recurrences or memory operations are identified. The new messages say "cannot prove it is safe to reorder * operations; allow reordering by specifying #pragma clang loop vectorize(enable)". Depending on the type of diagnostic the message will include additional options such as ffast-math or __restrict__. llvm-svn: 246189
* Append options for vectorization when pointer checking threshold is exceeded.Tyler Nowicki2015-08-101-0/+9
| | | | | | Following one of the appended options will allow the loop to be vectorized. We do not include a command line option for modifying the pointer checking threshold because there is no clang-level interface for this currently. llvm-svn: 244526
* Make frontend floating-point commutivity test X86 specific to avoid ↵Tyler Nowicki2015-08-101-1/+1
| | | | | | cost-model related problems on arm-thumb and hexagon. llvm-svn: 244517
* Remove non-ascii characters.Tyler Nowicki2015-08-101-1/+1
| | | | llvm-svn: 244506
* Append options for floating-point commutivity when related diagnostics are ↵Tyler Nowicki2015-08-101-0/+12
produced. With this patch clang appends the command line options that would allow vectorization when floating-point commutativity is required. Specifically those are enabling fast-math or specifying a loop hint. llvm-svn: 244492
OpenPOWER on IntegriCloud