[PATCH] D141344: Remove a FIXME that will never be fixed since undef is being removed.

Owen Anderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 20:06:21 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1e0f814e7309: Remove a FIXME that will never be fixed since undef is being removed. (authored by resistor).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141344/new/

https://reviews.llvm.org/D141344

Files:
  llvm/lib/Transforms/Scalar/BDCE.cpp


Index: llvm/lib/Transforms/Scalar/BDCE.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/BDCE.cpp
+++ llvm/lib/Transforms/Scalar/BDCE.cpp
@@ -143,9 +143,8 @@
 
       clearAssumptionsOfUsers(&I, DB);
 
-      // FIXME: In theory we could substitute undef here instead of zero.
-      // This should be reconsidered once we settle on the semantics of
-      // undef, poison, etc.
+      // Substitute all uses with zero. In theory we could use `freeze poison`
+      // instead, but that seems unlikely to be profitable.
       U.set(ConstantInt::get(U->getType(), 0));
       ++NumSimplified;
       Changed = true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141344.488067.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230111/7dba9cbc/attachment.bin>


More information about the llvm-commits mailing list