How about the following case:

$ clang foo1.c -S -arch arm64 -o foo1.ll -O3
$ clang foo2.c -S -arch arm64 -o foo2.ll -mno-global-merge

foo1.ll would get "Enable Global Merge"="true" while foo2.ll would get "Enable 
Global Merge"="false" and linking the two modules would be an error. Should the 
linker emit a linked module with "Enable Global Merge"="false" without any 
errors in this case?

My question is, if -mno-global-merge/-mglobal-merge is provided on the command 
line, does it mean global-merge pass should be disabled or enabled regardless 
of what the optimization level is?


http://reviews.llvm.org/D7968

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to