[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
Mon Jan 9 19:15:07 PST 2023
resistor created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
resistor requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
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.487640.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230110/ba70fd8f/attachment.bin>
More information about the llvm-commits
mailing list