[all-commits] [llvm/llvm-project] a8f7de: [InstCombine] Support one-hot merge for logical an...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed May 12 12:01:48 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a8f7dee1dffbf8c18acbcc7b1f6d659bf808798e
https://github.com/llvm/llvm-project/commit/a8f7dee1dffbf8c18acbcc7b1f6d659bf808798e
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-05-12 (Wed, 12 May 2021)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
M llvm/test/Transforms/InstCombine/onehot_merge.ll
Log Message:
-----------
[InstCombine] Support one-hot merge for logical and/or
If a logical and/or is used, we need to be careful not to propagate
a potential poison value from the RHS by inserting a freeze
instruction. Otherwise it works the same way as bitwise and/or.
This is intended to address the regression reported at
https://reviews.llvm.org/D101191#2751002.
Differential Revision: https://reviews.llvm.org/D102279
More information about the All-commits
mailing list