diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-12-06 18:38:29 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-12-06 18:38:29 +0000 |
| commit | 405e25cd6a109551ce483272e16e2095bdb355f6 (patch) | |
| tree | 355ce9d965f6ae1c197a022238b9123d5fab014d /llvm/test/CodeGen | |
| parent | d0ccdb46b9c1f6324e7bb77e1fb7d93fc4b77775 (diff) | |
| download | bcm5719-llvm-405e25cd6a109551ce483272e16e2095bdb355f6.tar.gz bcm5719-llvm-405e25cd6a109551ce483272e16e2095bdb355f6.zip | |
GlobalISel: stop the legalizer from trying to handle oddly-sized types.
It'll almost immediately fail because it always tries to half/double the size
until it finds a legal one. Unfortunately, this triggers an assertion
preventing the DAG fallback from being possible.
llvm-svn: 288834
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll b/llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll index e7b1f04e03b..304cd5eccc2 100644 --- a/llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll +++ b/llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll @@ -42,6 +42,7 @@ define [1 x double] @constant() { ; PHI. If so, we cannot complete the G_PHI and mustn't try or bad things ; happen. ; FALLBACK-WITH-REPORT-ERR: warning: Instruction selection used fallback path for pending_phis +; FALLBACK-WITH-REPORT-OUT-LABEL: pending_phis: define i32 @pending_phis(i1 %tst, i32 %val, i32* %addr) { br i1 %tst, label %true, label %false @@ -57,3 +58,10 @@ false: br label %end } + +; FALLBACK-WITH-REPORT-ERR: warning: Instruction selection used fallback path for odd_type +; FALLBACK-WITH-REPORT-OUT-LABEL: odd_type: +define void @odd_type(i42* %addr) { + %val42 = load i42, i42* %addr + ret void +} |

