diff options
author | Jessica Paquette <jpaquette@apple.com> | 2022-01-31 14:13:18 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2022-02-03 14:25:15 -0800 |
commit | 9a61e731ff4c2b7e19438efa277b8712d4431b04 (patch) | |
tree | df40ec2a4c7d0cbad7a27d8aefd3f282b4d3b88f /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp | |
parent | c636899dc1fad6ecd0a1846d531df72fc7e76e22 (diff) | |
download | llvm-9a61e731ff4c2b7e19438efa277b8712d4431b04.zip llvm-9a61e731ff4c2b7e19438efa277b8712d4431b04.tar.gz llvm-9a61e731ff4c2b7e19438efa277b8712d4431b04.tar.bz2 |
[GlobalISel] Combine (G_*ADDO x, 0) -> x + no carry out
Similar to the G_*MULO change.
The code for checking if a constant is legal/pre-legalize is shared between
these, and is kind of hairy. So, factor it out into a new function:
`isConstantLegalOrBeforeLegalizer`.
To make the refactoring clean, further refactor `isLegalOrBeforeLegalizer` into
a wrapper for two functions:
- `isPreLegalize`
- `isLegal`
This is a bit easier to read in general.
https://godbolt.org/z/KW7oszP1o
Differential Revision: https://reviews.llvm.org/D118655
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions