summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-autodiff-rev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-autodiff-rev.cpp')
-rw-r--r--source/slang/slang-ir-autodiff-rev.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-ir-autodiff-rev.cpp b/source/slang/slang-ir-autodiff-rev.cpp
index 8ec8f581c..34a08ee93 100644
--- a/source/slang/slang-ir-autodiff-rev.cpp
+++ b/source/slang/slang-ir-autodiff-rev.cpp
@@ -511,7 +511,10 @@ struct BackwardDiffTranscriber
this->makeParameterBlock(builder, as<IRFunc>(fwdDiffFunc));
// This steps adds a decoration to instructions that are computing the differential.
- diffPropagationPass->propagateDiffInstDecoration(builder, fwdDiffFunc);
+ // TODO: This is disabled for now because fwd-mode already adds differential decorations
+ // wherever need. We need to run this pass only for user-writted forward derivativecode.
+ //
+ // diffPropagationPass->propagateDiffInstDecoration(builder, fwdDiffFunc);
// Copy primal insts to the first block of the unzipped function, copy diff insts to the
// second block of the unzipped function.