llvm-project/llvm/test
Sanjay Patel e5606b4fa5 [ConstantFold] fp_binop AnyConstant, undef --> NaN
With the updated LangRef ( D44216 / rL327138 ) in place, we can proceed with more constant folding.

I'm intentionally taking the conservative path here: no matter what the constant or the FMF, we can 
always fold to NaN. This is because the undef operand can be chosen as NaN, and in our simplified 
default FP env, nothing else happens - NaN just propagates to the result. If we find some way/need 
to propagate undef instead, that can be added subsequently.

The tests show that we always choose the same quiet NaN constant (0x7FF8000000000000 in IR text). 
There were suggestions to improve that with a 'NaN' string token or not always print a 64-bit hex 
value, but those are independent changes. We might also consider setting/propagating the payload of 
NaN constants as an enhancement.

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

llvm-svn: 327208
2018-03-10 15:56:25 +00:00
..
Analysis [AArch64] Adjust the cost of integer vector division 2018-03-07 22:35:32 +00:00
Assembler Make the LLParser accept call instructions of variables in the program AS 2018-02-27 11:15:11 +00:00
Bindings [LLVM-C] Add Accessors For A Module's Source File Name 2018-01-30 21:34:29 +00:00
Bitcode Refactor check for dllimport in the Verifier. 2018-03-06 17:19:23 +00:00
BugPoint [bugpoint] Report non-existent opt binary 2018-02-09 06:09:15 +00:00
CodeGen [X86] Rewrite printMasking code in X86InstComments to use TSFlags to determine whether the instruction is masked. 2018-03-10 03:12:00 +00:00
DebugInfo Move generic test to the Generic directory 2018-03-09 16:42:05 +00:00
Examples
ExecutionEngine [RuntimeDyld][MachO] Fix assertion in encodeAddend, add missing directive to 2018-03-01 01:44:33 +00:00
Feature Mark two tests REQUIRES: x86-registered-backend 2018-01-31 07:32:03 +00:00
FileCheck
Instrumentation [asan] Fix a false positive ODR violation due to LTO ConstantMerge pass [llvm part, take 3] 2018-03-08 21:02:18 +00:00
Integer
JitListener
LTO Revert "[LTO] Support filtering by hotness threshold" 2018-03-08 01:13:10 +00:00
Linker [DebugInfo] Add remaining files to r325970 2018-02-23 23:13:18 +00:00
MC Don't treat .symver as a regular alias definition. 2018-03-09 03:13:37 +00:00
Object [WebAssembly] Reorder reloc sections to come between symtab and name 2018-03-05 12:59:03 +00:00
ObjectYAML [WebAssembly] Disallow weak undefined globals in the object format 2018-03-09 16:30:44 +00:00
Other Recommit r325001: [CallSiteSplitting] Support splitting of blocks with instrs before call. 2018-02-14 13:59:12 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen TableGen: Add a defset statement 2018-03-09 12:24:42 +00:00
ThinLTO/X86 Revert "[ThinLTO] Keep available_externally symbols live" 2018-03-09 01:25:18 +00:00
Transforms [ConstantFold] fp_binop AnyConstant, undef --> NaN 2018-03-10 15:56:25 +00:00
Unit
Verifier [DebugInfo] Add verifier for DICompositeType vector 2018-03-08 19:31:37 +00:00
YAMLParser
tools [llvm-objdump] Support disassembling by symbol name 2018-03-09 19:13:44 +00:00
.clang-format
CMakeLists.txt [CMake] Add missing test dependency 2018-03-08 14:43:24 +00:00
TestRunner.sh
lit.cfg.py [CMake] Add missing test dependency 2018-03-08 14:43:24 +00:00
lit.site.cfg.py.in