[llvm] [DAGCombiner] Freeze maybe poison operands when folding select to logic (PR #84924)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 07:34:43 PDT 2024


================
@@ -6,21 +6,14 @@
 
 ; (x0 < x1) && (x2 > x3)
 define i32 @cmp_and2(i32 %0, i32 %1, i32 %2, i32 %3) {
----------------
jayfoad wrote:

> I'm just not familiar with where else CopyFromReg gets used

SDAG operates per basic block, and I believe CopyFromReg/CopyToReg are generated for any use/def of a "global" value, i.e. one that is live outside of the current basic block.

https://github.com/llvm/llvm-project/pull/84924


More information about the llvm-commits mailing list