[llvm] r311323 - [GlobalISel][X86] InstructionSelector, for now use fallback path for LOAD_STACK_GUARD and PHI nodes.
Igor Breger via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 02:17:28 PDT 2017
Author: ibreger
Date: Mon Aug 21 02:17:28 2017
New Revision: 311323
URL: http://llvm.org/viewvc/llvm-project?rev=311323&view=rev
Log:
[GlobalISel][X86] InstructionSelector, for now use fallback path for LOAD_STACK_GUARD and PHI nodes.
Modified:
llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp?rev=311323&r1=311322&r2=311323&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp Mon Aug 21 02:17:28 2017
@@ -285,6 +285,11 @@ bool X86InstructionSelector::select(Mach
if (!isPreISelGenericOpcode(Opcode)) {
// Certain non-generic instructions also need some special handling.
+ if (Opcode == TargetOpcode::LOAD_STACK_GUARD)
+ return false;
+ if (Opcode == TargetOpcode::PHI)
+ return false;
+
if (I.isCopy())
return selectCopy(I, MRI);
More information about the llvm-commits
mailing list