llvm-project/llvm/unittests/IR
Sanjay Patel 78c09f0f24 [PatternMatch][InstCombine] match a vector with constant expression element(s) as a constant expression
The InstCombine test is reduced from issue #56601. Without the more
liberal match for ConstantExpr, we try to rearrange constants in
Negator forever.

Alternatively, we could adjust the definition of m_ImmConstant to be
more conservative, but that's probably a larger patch, and I don't
see any downside to changing m_ConstantExpr. We never capture and
modify a ConstantExpr; transforms just want to avoid it.

Differential Revision: https://reviews.llvm.org/D130286
2022-07-21 15:23:57 -04:00
..
AbstractCallSiteTest.cpp
AsmWriterTest.cpp
AttributesTest.cpp [NFC] Remove dead code 2022-06-25 17:18:45 +00:00
BasicBlockTest.cpp
CFGBuilder.cpp
CFGBuilder.h
CMakeLists.txt [VP] Introducing VectorBuilder, the VP intrinsic builder 2022-03-07 10:02:07 +01:00
ConstantRangeTest.cpp [ConstantRangeTest] Migrate known bits test to generic infrastructure (NFC) 2022-07-18 15:20:35 +02:00
ConstantsTest.cpp [IR] Remove support for float binop constant expressions 2022-07-12 09:40:49 +02:00
DataLayoutTest.cpp [LangRef] Remove incorrect vector alignment rules 2021-12-14 14:35:40 +00:00
DebugInfoTest.cpp Adding DiBuilder interface for assumed length strings 2022-02-11 14:40:02 -05:00
DebugTypeODRUniquingTest.cpp Reduce dependencies on llvm/BinaryFormat/Dwarf.h 2022-02-04 11:44:03 +01:00
DemandedBitsTest.cpp
DominatorTreeBatchUpdatesTest.cpp [DomTree][NFC] Clean up nits in DomTree code 2021-10-25 16:05:34 -04:00
DominatorTreeTest.cpp
FunctionTest.cpp
IRBuilderTest.cpp [IR] Enable opaque pointers by default 2022-06-02 09:40:56 +02:00
InstructionsTest.cpp Revert "Don't treat readnone call in presplit coroutine as not access memory" 2022-07-20 17:00:58 +08:00
IntrinsicsTest.cpp
LegacyPassManagerTest.cpp Cleanup includes: TransformsUtils 2022-03-01 21:00:07 +01:00
MDBuilderTest.cpp
ManglerTest.cpp [SystemZ][z/OS] Add GOFF Support to the DataLayout 2021-09-24 14:09:01 -04:00
MetadataTest.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
ModuleTest.cpp
PassBuilderCallbacksTest.cpp
PassManagerTest.cpp
PatternMatch.cpp [PatternMatch][InstCombine] match a vector with constant expression element(s) as a constant expression 2022-07-21 15:23:57 -04:00
TimePassesTest.cpp Cleanup header dependencies in LLVMCore 2022-02-02 06:54:20 +01:00
TypesTest.cpp [IR] Enable opaque pointers by default 2022-06-02 09:40:56 +02:00
UseTest.cpp
UserTest.cpp [IR] Report whether replaceUsesOfWith() changed something (NFC) 2022-05-18 11:46:28 +02:00
VPIntrinsicTest.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
ValueHandleTest.cpp
ValueMapTest.cpp
ValueTest.cpp [IRTests] With opaque ptrs we can test that there is no bitcast inserted 2022-06-02 09:56:11 +02:00
VectorBuilderTest.cpp [VP] Introducing VectorBuilder, the VP intrinsic builder 2022-03-07 10:02:07 +01:00
VectorTypesTest.cpp [llvm] Wrap multi-statement macro definitions with do ... while (0) 2022-07-16 20:58:20 -07:00
VerifierTest.cpp [IR] Enable opaque pointers by default 2022-06-02 09:40:56 +02:00