From 9b1335eca844fb364e78f5de1f5efa968900a120 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 19 Nov 2008 09:36:46 +0000 Subject: Fix redundant load of bit-fields on assignment (to get the updated value). - Use extra argument to EmitStoreThroughLValue to provide place to write update bit-field value if caller requires it. - This fixes several FIXMEs. llvm-svn: 59615 --- clang/test/CodeGen/volatile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/CodeGen/volatile.c') diff --git a/clang/test/CodeGen/volatile.c b/clang/test/CodeGen/volatile.c index 4db4a5d8431..ed0a33e9862 100644 --- a/clang/test/CodeGen/volatile.c +++ b/clang/test/CodeGen/volatile.c @@ -1,4 +1,4 @@ -// RUN: clang -emit-llvm < %s | grep volatile | count 26 +// RUN: clang -emit-llvm < %s | grep volatile | count 25 // The number 26 comes from the current codegen for volatile loads; // if this number changes, it's not necessarily something wrong, but @@ -76,7 +76,7 @@ void main() { vpF2->x=i; vF3.x.y=i; BF.x=i; - vBF.x=i; // FIXME: This generates an extra volatile load + vBF.x=i; V[3]=i; vV[3]=i; -- cgit v1.2.3