Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: src/IceTargetLoweringX8632.cpp

Issue 945953002: Subzero: Translate the unreachable bitcode directly to ud2. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/szrt.c ('k') | tests_lit/llvm2ice_tests/unreachable.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX8632.cpp
diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp
index 1e4d28274ebfa4713f92713966d288e551af73ad..13476c8ec4229fdf4209ccebe2ba0c48b8dc5e31 100644
--- a/src/IceTargetLoweringX8632.cpp
+++ b/src/IceTargetLoweringX8632.cpp
@@ -4119,10 +4119,7 @@ TargetX8632::eliminateNextVectorSextInstruction(Variable *SignExtendedResult) {
}
void TargetX8632::lowerUnreachable(const InstUnreachable * /*Inst*/) {
- const SizeT MaxSrcs = 0;
- Variable *Dest = nullptr;
- InstCall *Call = makeHelperCall("ice_unreachable", Dest, MaxSrcs);
- lowerCall(Call);
+ _ud2();
}
// Turn an i64 Phi instruction into a pair of i32 Phi instructions, to
« no previous file with comments | « runtime/szrt.c ('k') | tests_lit/llvm2ice_tests/unreachable.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698