summaryrefslogtreecommitdiff
path: root/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2022-09-28 17:25:11 -0700
committerJessica Paquette <jpaquette@apple.com>2022-09-28 19:38:24 -0700
commit1eb49bbab6b65182f651ea96cfe076ac0d9191d7 (patch)
tree2a1ae9799623c97687b060c77a7b7d59bfe5d146 /mlir/lib/Bytecode/Reader/BytecodeReader.cpp
parentccbb40147286e2e1996b2b7f089fc44f049c9d28 (diff)
[GlobalISel][CallLowering] Use hasRetAttr for return flags on CallBases
Given something like this: ``` declare signext i16 @signext_callee() define i32 @caller() { %res = call i16 @signext_callee() ... } ``` CallLowering would miss that signext_callee's return value is sign extended, because it isn't on the call. Use hasRetAttr on the CallBase to allow us to catch this. (This now inserts G_ASSERT_SEXT/G_ASSERT_ZEXT like in the original review.) Differential Revision: https://reviews.llvm.org/D86228
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
0 files changed, 0 insertions, 0 deletions