[all-commits] [llvm/llvm-project] 648544: [Constant] ConstantStruct/Array should not lower p...
Juneyoung Lee via All-commits
all-commits at lists.llvm.org
Wed Apr 7 23:23:55 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 648544f998cd0811670a625f4f2964125cf833b3
https://github.com/llvm/llvm-project/commit/648544f998cd0811670a625f4f2964125cf833b3
Author: Juneyoung Lee <aqjune at gmail.com>
Date: 2021-04-08 (Thu, 08 Apr 2021)
Changed paths:
M llvm/lib/IR/Constants.cpp
M llvm/unittests/IR/ConstantsTest.cpp
Log Message:
-----------
[Constant] ConstantStruct/Array should not lower poison to undef
This is a (late) follow-up patch of 8871a4b4cab8a56fd6ff12fd024002c3c79128b3 and
c95f39891a282ebf36199c73b705d4a2c78a46ce to make ConstantStruct::get/ConstantArray::getImpl
correctly return PoisonValue if all elements are poison.
This was found while discussing about the elements of a vector-typed UndefValue (D99853)
More information about the All-commits
mailing list