aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/TableGenBackend.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-01-05 09:18:04 +0000
committerBill Wendling <isanbard@gmail.com>2008-01-05 09:18:04 +0000
commitdf303bd7f2c15d6c5fcbee951bd8c21dde3f2718 (patch)
treec7d269ecd050eaca9176fffffd6d5f0fcbd390f6 /utils/TableGen/TableGenBackend.cpp
parente430e1c07278d28f58fd94bac508469b8c1d1933 (diff)
Chris and Evan noticed that this check was compleatly fubared. I was
checking that there was a from a global instead of a load from the stub for a global, which is the one that's safe to hoist. Consider this program: volatile char G[100]; int B(char *F, int N) { for (; N > 0; --N) F[N] = G[N]; } In static mode, we shouldn't be hoisting the load from G: $ llc -relocation-model=static -o - a.bc -march=x86 -machine-licm LBB1_1: # bb.preheader leal -1(%eax), %edx testl %edx, %edx movl $1, %edx cmovns %eax, %edx xorl %esi, %esi LBB1_2: # bb movb _G(%eax), %bl movb %bl, (%ecx,%eax) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGenBackend.cpp')
0 files changed, 0 insertions, 0 deletions