1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/lib
Sanjay Patel 3dbd723c6c [IR] allow fast-math-flags on select of FP values
This is a minimal start to correcting a problem most directly discussed in PR38086:
https://bugs.llvm.org/show_bug.cgi?id=38086

We have been hacking around a limitation for FP select patterns by using the
fast-math-flags on the condition of the select rather than the select itself.
This patch just allows FMF to appear with the 'select' opcode. No changes are
needed to "FPMathOperator" because it already includes select-of-FP because
that definition is based on the (return) value type.

Once we have this ability, we can start correcting and adding IR transforms
to use the FMF on a 'select' instruction. The instcombine and vectorizer test
diffs only show that the IRBuilder change is behaving as expected by applying
an FMF guard value to 'select'.

For reference:
rL241901 - allowed FMF with fcmp
rL255555 - allowed FMF with FP calls

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

llvm-svn: 361401
2019-05-22 15:50:46 +00:00
..
Analysis [InstSimplify] update stale comment; NFC 2019-05-20 17:52:18 +00:00
AsmParser [IR] allow fast-math-flags on select of FP values 2019-05-22 15:50:46 +00:00
BinaryFormat
Bitcode [IR] allow fast-math-flags on select of FP values 2019-05-22 15:50:46 +00:00
CodeGen [MIR] Add simple PRE pass to MachineCSE 2019-05-22 07:41:34 +00:00
DebugInfo [DWARF] hoist nullptr checks. NFC 2019-05-20 16:58:59 +00:00
Demangle
ExecutionEngine [ORC] Assert that JITDylibs have unique names. 2019-05-21 03:23:08 +00:00
Fuzzer
FuzzMutate
IR [Intrinsic] Signed Fixed Point Saturation Multiplication Intrinsic 2019-05-21 19:17:19 +00:00
IRReader
LineEditor
Linker [IRMover] Improve diagnostic messages for conflicting metadata 2019-05-16 05:23:13 +00:00
LTO [ELF] Implement Dependent Libraries Feature 2019-05-17 03:44:15 +00:00
MC [DebugInfo] Handle '# line "file"' correctly for asm source. 2019-05-21 11:59:03 +00:00
MCA
Object [llvm-dlltool] Respect NONAME keyword 2019-05-22 09:49:54 +00:00
ObjectYAML [ELF] Implement Dependent Libraries Feature 2019-05-17 03:44:15 +00:00
Option
Passes Fix typos in comment. 2019-05-16 18:01:57 +00:00
ProfileData Recommit [Object] Change object::SectionRef::getContents() to return Expected<StringRef> 2019-05-16 13:24:04 +00:00
Remarks
Support [VirtualFileSystem] Fix uninitialized variable warning. NFCI. 2019-05-22 11:20:52 +00:00
TableGen TableGen: support #ifndef in addition to #ifdef. 2019-05-14 13:04:25 +00:00
Target [AMDGPU][MC] Corrected parsing of op_sel* and neg_* modifiers 2019-05-22 13:59:01 +00:00
Testing
TextAPI
ToolDrivers
Transforms LoopVectorizationCostModel::selectInterleaveCount - assert we have a non-zero loop cost. NFCI. 2019-05-22 14:18:17 +00:00
WindowsManifest
XRay Recommit [Object] Change object::SectionRef::getContents() to return Expected<StringRef> 2019-05-16 13:24:04 +00:00
CMakeLists.txt
LLVMBuild.txt