diff options
| author | Jessica Paquette <jpaquette@apple.com> | 2022-09-28 17:25:11 -0700 |
|---|---|---|
| committer | Jessica Paquette <jpaquette@apple.com> | 2022-09-28 19:38:24 -0700 |
| commit | 1eb49bbab6b65182f651ea96cfe076ac0d9191d7 (patch) | |
| tree | 2a1ae9799623c97687b060c77a7b7d59bfe5d146 /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | ccbb40147286e2e1996b2b7f089fc44f049c9d28 (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
