================
@@ -3039,6 +3040,12 @@ static bool isNaturalMemoryOperand(SDValue Op, unsigned 
ICmpType) {
 
 // Return true if it is better to swap the operands of C.
 static bool shouldSwapCmpOperands(const Comparison &C) {
+  // swap operands of COMPARE_STACK_GUARD if loading the reference value
+  // is Op0.
+  if ((C.Opcode == SystemZISD::COMPARE_STACKGUARD) && C.Op0.isMachineOpcode() 
&&
----------------
uweigand wrote:

I don't think we need the Opcode compare here.

https://github.com/llvm/llvm-project/pull/169317
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to