1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test
Mikael Holmen 3a82bf8c1f [UnreachableBlockElim] Use COPY if PHI input is undef
Summary:
If we have

    %vreg0<def> = PHI %vreg2<undef>, <BB#0>, %vreg3, <BB#2>; GR32:%vreg0,%vreg2,%vreg3
    %vreg3<def,tied1> = ADD32ri8 %vreg0<kill,tied0>, 1, %EFLAGS<imp-def>; GR32:%vreg3,%vreg0

then we can't just change %vreg0 into %vreg3, since %vreg2 is actually
undef. We would have to also copy the undef flag to be able to change the
register.

Instead we deal with this case like other cases where we can't just
replace the register: we insert a COPY. The code creating the COPY already
copied all flags from the PHI input, so the undef flag will be transferred
as it should.

Reviewers: kparzysz

Reviewed By: kparzysz

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D38235

llvm-svn: 314879
2017-10-04 06:06:31 +00:00
..
Analysis [Lint] Avoid failed assertion by fetching the proper pointer type 2017-10-03 06:03:49 +00:00
Assembler
Bindings
Bitcode [AMDGPU] calling conventions for AMDPAL OS type 2017-09-29 09:51:22 +00:00
BugPoint
CodeGen [UnreachableBlockElim] Use COPY if PHI input is undef 2017-10-04 06:06:31 +00:00
DebugInfo CodeView: Provide a .def file with the register ids 2017-10-03 18:27:22 +00:00
DllTool
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
LibDriver
Linker
LTO Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
MC [AMDGPU] implemented pal metadata 2017-10-03 19:03:52 +00:00
Object AMDGPU: Add ELFOSABI_AMDGPU_MESA3D 2017-10-03 21:14:14 +00:00
ObjectYAML [ObjectYAML] Handle SHF_COMPRESSED 2017-10-03 06:35:55 +00:00
Other
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86
tools llvm-dwarfdump: implement the --regex option in combination with --name. 2017-10-03 22:08:22 +00:00
Transforms Move verbosity check for remarks to the diag handler 2017-10-04 04:26:23 +00:00
Unit
Verifier Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh