Revert "[ConstantFolding] Unify handling of load from uniform value"
authorNikita Popov <npopov@redhat.com>
Sat, 18 Dec 2021 19:40:42 +0000 (20:40 +0100)
committerNikita Popov <npopov@redhat.com>
Sat, 18 Dec 2021 19:46:52 +0000 (20:46 +0100)
commitaeb36ae0f4cbc5fb1d01921d89a80d62ccc2f058
tree6abde62371040ac7ec68c4e7688dad209184bcbf
parent2ec75a0869ab01fa9caf310e8a31eb7716182d30
Revert "[ConstantFolding] Unify handling of load from uniform value"

This reverts commit 9fd4f80e33a4ae4567483819646650f5735286e2.

This breaks SingleSource/Regression/C/gcc-c-torture/execute/pr19687.c
in test-suite. Either the test is incorrect, or clang is generating
incorrect union initialization code. I've submitted
https://reviews.llvm.org/D115994 to fix the test, assuming my
interpretation is correct. Reverting this in the meantime as it
may take some time to resolve.
clang/test/CodeGen/aapcs-align.cpp
llvm/include/llvm/Analysis/ConstantFolding.h
llvm/lib/Analysis/ConstantFolding.cpp
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/test/Transforms/GlobalOpt/x86_mmx_load.ll [deleted file]
llvm/test/Transforms/InstSimplify/ConstProp/loads.ll