diff options
| author | Jessica Paquette <jpaquette@apple.com> | 2019-04-23 18:20:44 +0000 |
|---|---|---|
| committer | Jessica Paquette <jpaquette@apple.com> | 2019-04-23 18:20:44 +0000 |
| commit | 56342642a087f2cd8b11b84a123f7e5151322cdc (patch) | |
| tree | fafd4b7ac2129871cfb2fee748774fe76e0eb219 /llvm/lib/CodeGen | |
| parent | 1670772adc0ebe647aa8cda20e0b7dada3cf3e85 (diff) | |
| download | bcm5719-llvm-56342642a087f2cd8b11b84a123f7e5151322cdc.tar.gz bcm5719-llvm-56342642a087f2cd8b11b84a123f7e5151322cdc.zip | |
[AArch64][GlobalISel] Legalize G_INTRINSIC_TRUNC
Same patch as G_FCEIL etc.
Add the missing switch case in widenScalar, add G_INTRINSIC_TRUNC to the correct
rule in AArch64LegalizerInfo.cpp, and add a test.
llvm-svn: 359021
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp index 4b592b33987..9521e67a6e8 100644 --- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp +++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp @@ -1327,6 +1327,7 @@ LegalizerHelper::widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy) { case TargetOpcode::G_FEXP: case TargetOpcode::G_FEXP2: case TargetOpcode::G_FPOW: + case TargetOpcode::G_INTRINSIC_TRUNC: assert(TypeIdx == 0); Observer.changingInstr(MI); |

