[llvm] [VectorCombine] Fold reduce(trunc(x)) -> trunc(reduce(x)) iff cost effective (PR #81852)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 19 03:17:45 PST 2024


================
@@ -29,6 +29,7 @@
 #include "llvm/IR/PatternMatch.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Transforms/Utils/Local.h"
+#include "llvm/Transforms/Utils/LoopUtils.h"
----------------
RKSimon wrote:

Yes, the reduction intrinsics mapping helpers are all defined in LoopUtils.h

https://github.com/llvm/llvm-project/pull/81852


More information about the llvm-commits mailing list