[clang] [llvm] [Instcombine] use zext's nneg flag for icmp folding (PR #70845)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 8 08:20:09 PST 2023


================
@@ -0,0 +1,126 @@
+; RUN: opt < %s --O3 -S | FileCheck %s
+
+define signext i16 @vecreduce_smax_v2i16(i32 noundef %0, ptr noundef %1) #0 {
----------------
nikic wrote:

I think the point of these tests is to check interaction between IPSCCP and InstCombine, so a PhaseOrdering test makes sense.

However, in the current form these tests are too hard to understand. I would suggest getting the IR again with `-fno-discard-value-names` and then running `opt -S -passes=sroa` over it to convert it into SSA form.

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


More information about the cfe-commits mailing list