aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2022-01-31 14:13:18 -0800
committerJessica Paquette <jpaquette@apple.com>2022-02-03 14:25:15 -0800
commit9a61e731ff4c2b7e19438efa277b8712d4431b04 (patch)
treedf40ec2a4c7d0cbad7a27d8aefd3f282b4d3b88f /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
parentc636899dc1fad6ecd0a1846d531df72fc7e76e22 (diff)
downloadllvm-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