diff options
| author | peterbell10 <peterbell10@openai.com> | 2025-01-15 20:09:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 20:09:18 +0000 |
| commit | 0068078dca60b41ad1c7bdd4448e7de718b82a5d (patch) | |
| tree | c696244552047ab47b418f5a936428d64f5a8120 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | 5a90168fa34e15b544d7749ca4d247a16d360119 (diff) | |
| download | llvm-0068078dca60b41ad1c7bdd4448e7de718b82a5d.zip llvm-0068078dca60b41ad1c7bdd4448e7de718b82a5d.tar.gz llvm-0068078dca60b41ad1c7bdd4448e7de718b82a5d.tar.bz2 | |
[NVPTX] Remove `NVPTX::IMAD` opcode, and rely on intruction selection only (#121724)
I noticed that NVPTX will sometimes emit `mad.lo` to multiply by 1, e.g.
in https://gcc.godbolt.org/z/4j47Y9W4c.
This happens when DAGCombiner operates on the add before the mul, so the
imad contraction happens regardless of whether the mul could have been
simplified.
To fix this, I remove `NVPTXISD::IMAD` and only combine to mad during
selection. This allows the default DAGCombiner patterns to simplify
the graph without any NVPTX-specific intervention.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
