]> granicus.if.org Git - llvm/commitdiff
[FPEnv] A missing crucial step was undocumented.
authorKevin P. Neal <kevin.neal@sas.com>
Tue, 25 Jun 2019 16:09:39 +0000 (16:09 +0000)
committerKevin P. Neal <kevin.neal@sas.com>
Tue, 25 Jun 2019 16:09:39 +0000 (16:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364328 91177308-0d34-0410-b5e6-96231b3b80d8

docs/AddingConstrainedIntrinsics.rst

index 672ce31f52a3e4d4a1fafdc9174e1bfcc5a629f5..9e7151940320f13917c3a39eb72160451c6606e7 100644 (file)
@@ -81,6 +81,14 @@ be properly handled.::
 
   lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 
+However, the mutation may not happen if the new node has not been registered
+in TargetLoweringBase::initActions(). If the corresponding non-STRICT node
+is Legal but a target does not know about STRICT nodes then the STRICT
+node will default to Legal and mutation will be bypassed with a "Cannot
+select" error. Register the new STRICT node as Expand to avoid this bug.::
+
+  lib/CodeGen/TargetLoweringBase.cpp
+
 To make debug logs readable it is helpful to update the SelectionDAG's
 debug logger:::