llvm-project/llvm/unittests/CodeGen/GlobalISel
Quentin Colombet 5d87b5d202 [GISelKnownBits] Add support for PHIs
Teach the GISelKnowBits analysis how to deal with PHI operations.
PHIs are essentially COPYs happening on edges, so we can just reuse
the code for COPY.

This is NFC COPY-wise has we leave Depth untouched when calling
computeKnownBitsImpl for COPYs, like it was before this patch.
Increasing Depth is however required for PHIs as they may loop back to
themselves and we would end up in an infinite loop if we were not
increasing Depth.

Differential Revision: https://reviews.llvm.org/D73317
2020-01-24 16:43:52 -08:00
..
CMakeLists.txt [Legalizer] Refactoring out legalizeMachineFunction 2019-12-13 15:45:18 -08:00
CSETest.cpp [CodeGen] Make use of MachineInstrBuilder::getReg 2020-01-23 13:38:13 +00:00
ConstantFoldingTest.cpp [CodeGen] Make use of MachineInstrBuilder::getReg 2020-01-23 13:38:13 +00:00
GISelMITest.cpp
GISelMITest.h [GISelKnownBits] Add support for PHIs 2020-01-24 16:43:52 -08:00
KnownBitsTest.cpp [GISelKnownBits] Add support for PHIs 2020-01-24 16:43:52 -08:00
LegalizerHelperTest.cpp Remove leftover MF->dump()'s from r368487 that break release builds 2019-08-09 21:33:31 +00:00
LegalizerInfoTest.cpp
LegalizerTest.cpp Fix Wpedantic 'extra semicolon' warning. NFC. 2019-12-21 17:32:00 +00:00
MachineIRBuilderTest.cpp [CodeGen] Make use of MachineInstrBuilder::getReg 2020-01-23 13:38:13 +00:00
PatternMatchTest.cpp GlobalISel: Add MIPatternMatch for G_ICMP/G_FCMP 2020-01-23 13:30:47 -08:00