[PATCH] D133449: [InstCombine] Baseline tests for folding x + (x | -x) to x & (x - 1)
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 14:29:08 PDT 2022
spatel added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/add_or_sub.ll:88
+ %x = mul <4 x i16> %p, %p ; thwart complexity-based canonicalization
+ %sub = sub <4 x i16> <i16 -1, i16 undef, i16 undef, i16 -1>, %x
+ %or = or <4 x i16> %sub, %x
----------------
Replace undef with poison. We're moving away from undef as a value in IR, so we don't want to add new tests with undef.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133449/new/
https://reviews.llvm.org/D133449
More information about the llvm-commits
mailing list