[ConstantFold][GlobalOpt] Don't create x86_mmx null value
authorNikita Popov <npopov@redhat.com>
Tue, 21 Dec 2021 08:11:41 +0000 (09:11 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 21 Dec 2021 08:11:41 +0000 (09:11 +0100)
commit2926d6d335aca7e3f57ac45e6b25b1716e053fb3
treec6e1c4f64bfdff09ee45506c1a724b0122fd2da4
parent9be67289b306cb1a7ee1452c2ae497c899ff54c5
[ConstantFold][GlobalOpt] Don't create x86_mmx null value

This fixes the assertion failure reported at
https://reviews.llvm.org/D114889#3198921 with a straightforward
check, until the cleaner fix in D115924 can be reapplied.
llvm/lib/Analysis/ConstantFolding.cpp
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/test/Transforms/GlobalOpt/x86_mmx_load.ll [new file with mode: 0644]
llvm/test/Transforms/InstSimplify/ConstProp/loads.ll