[PATCH] D28236: InstCombine: Fold cos(-x) -> cos(x)

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 09:22:19 PST 2017


davide added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:1641
+  case Intrinsic::cos:
+  case Intrinsic::amdgcn_cos: {
+    Value *SrcSrc;
----------------
While here, I also noticed the `amdgcn_cos` is not documented in `LangRef`, maybe it could be (or somewhere else)


https://reviews.llvm.org/D28236





More information about the llvm-commits mailing list