[llvm] [NVPTX] Propagate truncate to operands (PR #98666)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 12:29:20 PDT 2024
tschuett wrote:
> > The DAGCombiner has the same combine: https://github.com/llvm/llvm-project/blob/ae63db78828621feca713016e33f34717da626a5/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp#L15170
>
> Interesting, then the question is -- why it apparently doesn't it fire in NVPTX. That may be what needs fixing.
It expects one of the parameters of the binop to be constant. This combine seems to be less restrictive.
https://github.com/llvm/llvm-project/pull/98666
More information about the llvm-commits
mailing list