[all-commits] [llvm/llvm-project] 218f97: [IR] Accept non-Instruction in BinaryOperator::Cre...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Jul 21 01:06:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 218f97578b26f7a89f7f8ed0748c31ef0181f80a
https://github.com/llvm/llvm-project/commit/218f97578b26f7a89f7f8ed0748c31ef0181f80a
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-07-21 (Fri, 21 Jul 2023)
Changed paths:
M llvm/include/llvm/IR/InstrTypes.h
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/test/Transforms/InstCombine/and-xor-or.ll
Log Message:
-----------
[IR] Accept non-Instruction in BinaryOperator::CreateWithCopiedFlags() (NFC)
The underlying copyIRFlags() API accepts arbitrary values and can
work with flags on operators (i.e. instructions or constant
expressions). Remove the arbitrary limitation that the
CreateWithCopiedFlags() API imposes, so we can directly pass through
values matched by PatternMatch, which can be constant expressions.
The attached test case works fine now, but would crash with an
upcoming change to not produce and constant expressions.
More information about the All-commits
mailing list