[PATCH] D99753: [SLP]Fix a bug in min/max reduction, number of condition uses.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 11:10:40 PDT 2021


ABataev added inline comments.


================
Comment at: llvm/test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll:908
 ; THRESH-NEXT:    [[TMP9:%.*]] = select i1 [[TMP8]], i32 [[TMP6]], i32 [[TMP7]]
-; THRESH-NEXT:    [[TMP10:%.*]] = select i1 undef, i32 3, i32 4
-; THRESH-NEXT:    store i32 [[TMP10]], i32* @var, align 8
----------------
Here is an example of the bug, use `undef` instead of the result of `icmp` instruction (`%10` in the test)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99753/new/

https://reviews.llvm.org/D99753



More information about the llvm-commits mailing list