diff options
author | Sanjay Patel <spatel@rotateright.com> | 2014-09-01 18:44:57 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2014-09-01 18:44:57 +0000 |
commit | 5ad239e15a3cd609b86dc6ca06c2928f7a9c1aae (patch) | |
tree | 413882d4635e36fa60f23a0c987bc1e94cbe8c86 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3ae91933713b20c6f6831b579811acad95560c2b (diff) | |
download | llvm-5ad239e15a3cd609b86dc6ca06c2928f7a9c1aae.zip llvm-5ad239e15a3cd609b86dc6ca06c2928f7a9c1aae.tar.gz llvm-5ad239e15a3cd609b86dc6ca06c2928f7a9c1aae.tar.bz2 |
Add a convenience method to copy wrapping, exact, and fast-math flags (NFC).
The loop vectorizer preserves wrapping, exact, and fast-math properties of scalar instructions.
This patch adds a convenience method to make that operation easier because we need to do this
in the loop vectorizer, SLP vectorizer, and possibly other places.
Although this is a 'no functional change' patch, I've added a testcase to verify that the exact
flag is preserved by the loop vectorizer. The wrapping and fast-math flags are already checked
in existing testcases.
Differential Revision: http://reviews.llvm.org/D5138
llvm-svn: 216886
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions