summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PeepholeOptimizer.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-10-14 22:59:49 +0000
committerHal Finkel <hfinkel@anl.gov>2014-10-14 22:59:49 +0000
commit1a600faba0329f5cde0aab1ce7bbff2f09252eff (patch)
tree0b9e37ad779b27a1e4d7abfa607f001420aed0e3 /llvm/lib/CodeGen/PeepholeOptimizer.cpp
parentadfd7f6ef4599f3a3477125eb267f9de59c0946f (diff)
downloadbcm5719-llvm-1a600faba0329f5cde0aab1ce7bbff2f09252eff.tar.gz
bcm5719-llvm-1a600faba0329f5cde0aab1ce7bbff2f09252eff.zip
[LoopVectorize] Ignore @llvm.assume for cost estimates and legality
A few minor changes to prevent @llvm.assume from interfering with loop vectorization. First, treat @llvm.assume like the lifetime intrinsics, which are scalarized (but don't otherwise interfere with the legality checking). Second, ignore the cost of ephemeral instructions in the loop (these will go away anyway during CodeGen). Alignment assumptions and other uses of @llvm.assume can often end up inside of loops that should be vectorized (this is not uncommon for assumptions generated by __attribute__((align_value(n))), for example). llvm-svn: 219741
Diffstat (limited to 'llvm/lib/CodeGen/PeepholeOptimizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud