summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-11 18:23:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-11 18:23:35 +0000
commit2b89448d601d40fa1ba6da34031213e9bd1e5b24 (patch)
tree27306dc99c144e6298a39803f4148f0bbe579311 /llvm/lib/Target
parent687d0781926e996d51fc7cd11e3b03d1cb9f6b1b (diff)
downloadbcm5719-llvm-2b89448d601d40fa1ba6da34031213e9bd1e5b24.tar.gz
bcm5719-llvm-2b89448d601d40fa1ba6da34031213e9bd1e5b24.zip
Use unsigned comparison in segmented stack prologue.
This is a comparison of two addresses, and GCC does the comparison unsigned. Patch by Brian Anderson. llvm-svn: 147954
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86FrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index 058b39a1c71..fba4788d6a5 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/lib/Target/X86/X86FrameLowering.cpp
@@ -1405,7 +1405,7 @@ X86FrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const {
// This jump is taken if SP >= (Stacklet Limit + Stack Space required).
// It jumps to normal execution of the function body.
- BuildMI(checkMBB, DL, TII.get(X86::JG_4)).addMBB(&prologueMBB);
+ BuildMI(checkMBB, DL, TII.get(X86::JA_4)).addMBB(&prologueMBB);
// On 32 bit we first push the arguments size and then the frame size. On 64
// bit, we pass the stack frame size in r10 and the argument size in r11.
OpenPOWER on IntegriCloud